Python's integer types are different from those expressed in other languages, and the range of integer values in other languages is related to the number of machine bits.
For example, on a 32-bit machine, the range of integer values is about -2 365 438+0 to 2 365 438+0, and on a 64-bit machine, it is about -2 63 to 2 63.
Python integers are only related to the memory size supported by the machine, which means Python can represent a very large number, which can exceed the range of machine digits.
Extended data
Python feature
1, easy to learn: Python has relatively few keywords, simple structure, clear grammar definition and is easier to learn.
2. Readability: Python code definition is clearer.
3. Easy to maintain: Python's success lies in the fact that its source code is quite easy to maintain.
4. Rich standard library: One of the biggest advantages of Python is its rich library, which is cross-platform and compatible with UNIX, Windows and Macintosh.
5. Interactive mode: Interactive mode is supported, and the language of executing code can be input from the terminal and the results can be obtained, and the code fragments can be tested and debugged interactively.
6. Portability: Based on its open source characteristics, Python has been ported to many platforms (that is, to make it work).
7. Extensibility: If you need a key code that runs very fast, or want to write some algorithms that you don't want to open, you can use C or C++ to complete that part of the program, and then call it from a Python program.
8. Databases: Python provides interfaces for all major commercial databases.
9.GUI programming: Python supports GUIs that can be created and ported to many system calls.
10, embeddable: Python can be embedded in C/C++ programs, so that users of programs can gain the ability to write scripts.