主页
Python
Python math.cos() 方法
demo_ref_math_cos
运行 ❯
×
更改方向
保存代码
更改主题
# Import math Library import math # Return the cosine of different numbers print (math.cos(0.00)) print (math.cos(-1.23)) print (math.cos(10)) print (math.cos(3.14159265359))
1.0
0.3342377271245026
-0.8390715290764524
-1.0