Python中的sin和cos函数

来源:互联网 发布:石家庄软件测试招聘 编辑:程序博客网 时间:2024/05/01 01:35


第一次使用math.sin()和math.cos(),可是发现结果不对,比如Math.sin(90)=0.893996663600,奇怪?

一查,原来sin(x) \n\n Return the sine of x (measured in radians) 以弧度作为参数

math.sin(math.radians(90))这样就对了