您可以使用:
-math.pow(3, float(1)/3)
或更笼统地说:
if x > 0: return math.pow(x, float(1)/3)elif x < 0: return -math.pow(abs(x), float(1)/3)else: return 0

您可以使用:
-math.pow(3, float(1)/3)
或更笼统地说:
if x > 0: return math.pow(x, float(1)/3)elif x < 0: return -math.pow(abs(x), float(1)/3)else: return 0