斜率、弧度、角度之间的转换: import math a = math.atan(10) # 10为斜率 print("弧度:", a) b = math.degrees(a) print("角度:", b)