三角函数 导入import math模块 1.cos() 需借助 π,cos(45°) 应该表示成 cos(π/4) print(math.cos(math.pi/4)) print( math.sqrt(2)/2 ) 2.sin() sin(45°) 应该表示成 s