我有这个问题>>>importmath>>>math.pow(-1.07,1.3)Traceback(mostrecentcalllast):File"",line1,inValueError:mathdomainerror有什么建议吗? 最佳答案 (-1.07)1.3不是实数,因此数学域错误。如果需要复数,ab必须改写成eblna,例如>>>importcmath>>>cmath.exp(1.3*cmath.log(-1.07))(-0.6418264288034731-0.8833982926856789j)如果您只想返回NaN