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

以上實例運行后輸出結果為:xL528資訊網——每日最新資訊28at.com
本文鏈接:http://www.tebozhan.com/showinfo-119-2433-0.html云計算開發:Python3三角函數sin()方法詳解
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。郵件:2376512515@qq.com
上一篇: 云計算開發:Python3三角函數tan()方法詳解
下一篇: 云計算開發:Python3集合內置add()方法
標簽: