描述g2d28資訊網——每日最新資訊28at.com
Python3 cos() 返回x的弧度的余弦值。g2d28資訊網——每日最新資訊28at.com
語法g2d28資訊網——每日最新資訊28at.com
以下是 cos() 方法的語法:g2d28資訊網——每日最新資訊28at.com
import mathg2d28資訊網——每日最新資訊28at.com
math.cos(x)g2d28資訊網——每日最新資訊28at.com
注意:cos()是不能直接訪問的,需要導入 math 模塊,然后通過 math 靜態對象調用該方法。g2d28資訊網——每日最新資訊28at.com
參數g2d28資訊網——每日最新資訊28at.com
x -- 一個數值。g2d28資訊網——每日最新資訊28at.com
返回值g2d28資訊網——每日最新資訊28at.com
返回x的弧度的余弦值,-1 到 1 之間。g2d28資訊網——每日最新資訊28at.com
實例g2d28資訊網——每日最新資訊28at.com
以下展示了使用 cos() 方法的實例:g2d28資訊網——每日最新資訊28at.com

以上實例運行后輸出結果為:g2d28資訊網——每日最新資訊28at.com
本文鏈接:http://www.www897cc.com/showinfo-119-2412-0.html云計算開發:Python3三角函數cos()方法詳解
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。郵件:2376512515@qq.com
上一篇: 云安全日報220707:思科Expressway系列和網真視頻通信服務器發現遠程攻擊漏洞,需要盡快升級
下一篇: 云安全日報220712:IBM Integration Bus集成解決方案發現執行任意代碼漏洞,需要盡快升級
標簽: