主页
Python
Python math.sin() 方法
demo_ref_math_sin2
运行 ❯
×
更改方向
保存代码
更改主题
# Import math Library import math # Return the sine value of 30 degrees print(math.sin(math.radians(30))) # Return the sine value of 90 degrees print(math.sin(math.radians(90)))
0.49999999999999994
1.0