import math def deal(yaw): if(yaw<): print(-(abs(yaw)/math.pi)*) print(math.degrees(yaw)) else: print((abs(yaw)/math.pi)*) print(math.degrees(yaw)) yaw=math.pi/ deal(yaw) yaw=-math.pi/ deal(yaw)输出30.0 29.999999999999996 -60.0 -59.99999999999999