小白教程
所有教程
关于
Search
172.69.6.111
172.69.6.111
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Ref math radians”的源代码
本页内容
上一节:
Ref_math_prod
下一节:
Ref_math_remainder
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:math.radians(x)}}[[Category:python math|48]] = Python math.radians() 方法 = [[python math|Python math 模块]] Python '''math.radians(x)''' 方法将角度 x 从度数转换为弧度。 [https://www.xiaobai.wang/python3/ref-math-degrees.html math.degrees()] 方法将弧度值转换为度数。 Python 版本: 2.0 === 语法 === math.radians() 方法语法如下: <sample title="" desc="" lang="python" hererun="1"> math.radians(x) </sample> '''参数说明:''' * '''x''' -- 必需,数字。如果 x 不是一个数字,返回 TypeError。 === 返回值 === 返回一个浮点数,表示弧度值。 == 以下实例返回不同度数转换为弧度: <sample title="" desc="" lang="python" hererun="1"> # 导入 math 包 import math # 输出度数转换为弧度 print(math.radians(180)) print(math.radians(100.03)) print(math.radians(-20)) </sample> 输出结果: <sample title="" desc="" lang="python" hererun="1"> 3.141592653589793 1.7458528507699278 -0.3490658503988659 </sample> [[python math|Python math 模块]]
返回至“
Ref math radians
”。
上一节:
Ref_math_prod
下一节:
Ref_math_remainder