Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What's the difference between python ordinary integers and long integers?
What's the difference between python ordinary integers and long integers?
The difference between Python ordinary integer and long integer;

Python's common integer type is the most common number type. On most 32-bit machines, the common integer types range from-2 * * 32 to 2 * * 32-1.

Python's long integer can only represent numerical values related to the (virtual) memory size supported by the machine. In other words, Python can easily express large integers.

Long integers are supersets of ordinary integers. When the program needs to use an integer larger than the ordinary integer, it can be used, and adding an L after the integer value indicates that it is a long integer. These two integer types are gradually unifying into one.

Python learning network, free online learning Python platform, welcome to pay attention!