溢出错误:数学范围错误
>>> import math
>>> math.pow(2, 3000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
我该怎么解决这个问题呢?
1 个回答
18
使用内置的操作符。
2**3000