python3不会数字溢出?!是的!
int:整型都统一成了int,能表示无限大。
python docs这么描述的:
These represent numbers in an unlimited range, subject to available (virtual) memory only.
float:就是c里的double(能表示到1e+308左右),python docs表示反正都用对象表示了,也不差省float比double少的这点了。
float('inf')表示最大的浮点数。
大于inf的都被表示为inf