python函数 math 反正切:y = tan x —> arctan y= x math.atan(x) 返回 x 的反正切值,结果范围在 -pi/2 到 pi/2 之间。 math.atan2(y, x) 返回给定的 X 及 Y 坐标值的反正切值,结果是在 -pi 和 pi 之间。