In [1]: import math
# 弧度转角度
In [2]: math.degrees(0.5)
Out[2]: 28.64788975654116
In [3]: math.degrees(math.pi)
Out[3]: 180.0
# 角度转弧度
In [4]: math.radians(28.647)
Out[4]: 0.4999844708188156
In [5]: math.radians(180)
Out[5]: 3.141592653589793
In [1]: import math
# 弧度转角度
In [2]: math.degrees(0.5)
Out[2]: 28.64788975654116
In [3]: math.degrees(math.pi)
Out[3]: 180.0
# 角度转弧度
In [4]: math.radians(28.647)
Out[4]: 0.4999844708188156
In [5]: math.radians(180)
Out[5]: 3.141592653589793