[Python] Converting radians to angles

# usage:

"""
第一种:
import math
math.degrees(x)
第二种:
from math import *
degrees(x)
"""

x=1
print("弧度{}的角度为{}".format(x,math.degrees(x)))
>>弧度1的角度为57.29577951308232

Guess you like

Origin blog.csdn.net/ao1886/article/details/109100887