The maximum integer of python

use the following code to get the maximum integer 9223372036854775807

import sys
max = sys.maxsize
print (max)

but print (9223372036854775807 / 9223372036854775807) is still

with correct results.

since the maximum range of integer operations in python depends on the size of memory, what does the so-called maximum integer mean? obviously, it can continue to be larger?

Aug.05,2021

sys.maxsize details are the largest integers in the system. 9223372036854775807 indicates that you are a 64-bit system.
python theoretically supports the operation of infinite integers (as long as there is enough memory). You can learn about the algorithm of addition, subtraction, multiplication and division of large integers.

Menu