复制标志
在 Python 2.6 及更高版本中,math.copysign(x, y) 以 y 的符号返回 x。返回的值始终是 float。
Python 2.x >= 2.6
math.copysign(-2, 3)    # 2.0
math.copysign(3, -3)    # -3.0
math.copysign(4, 14.2)  # 4.0
math.copysign(1, -0.0)  # -1.0, on a platform which supports signed zero