Python 的標準函式「math」提供了許多常用的數學函式,例如三角函數、四捨五入、 ... import math r = math.radians(30) # 將30 度轉換為弧度 print(math.sin(r)) ...
確定! 回上一頁