19 lines
419 B
Markdown
19 lines
419 B
Markdown
|
---
|
|||
|
title: Degrees to Radians
|
|||
|
localeTitle: 度数到弧度
|
|||
|
---
|
|||
|
## 度数到弧度
|
|||
|
|
|||
|
将角度乘以pi / 180。请记住,pi弧度跨越一半的圆,即180度。 这是一个将度数转换为弧度的python函数。请享用!
|
|||
|
|
|||
|
导入数学
|
|||
|
def度_到_弧度(角度):
|
|||
|
返回角度\* math.pi / 180;
|
|||
|
|
|||
|
#### 更多信息:
|
|||
|
|
|||
|
一个完整的周期= 360度=2π弧度
|
|||
|
|
|||
|
1度=2π/ 360弧度
|
|||
|
|
|||
|
p度= p×2π/ 360弧度
|