I. Introduction of Python
Python is an easy-to-learn and powerful programming language. It has efficient advanced data structures and simple and efficient object-oriented programming features. Python's elegant syntax and dynamic type, as well as its explanatory nature, make it an ideal language for scripting and rapid application development in many areas and most platforms.
Python can be used in many fields, such as data analysis, component integration, network services, image processing, numerical computing, and scientific computing.
Python is an explanatory language because it does not compile and link, it can save you a lot of time in the development process of the program. The Python interpreter can be used interactively, which makes it easy to experiment with the features of the Python language, write a program that is thrown later, or test the functionality in a bottom-up program development. It is also a handy desktop calculator.
Python makes the program simple and easy to read. The Python programs you write are often much shorter than equivalent C, C + +, or Java programs for several reasons:
Advanced data types allow you to express complex operations in a single statement;
Statement grouping is done by indenting, rather than opening and closing parentheses;
The Declaration of variables and arguments is not required.
Second, the Python interpreter
1. Introduction to the Python interpreter
The code written in the Python language needs to be interpreted by the Python interpreter, which is categorized as follows:
CPython (most commonly used version)
The official version of Python, implemented using the C language, is the most widely used CPython implementation converts the source file (. py file) into a bytecode file (PYc file) and then runs on the Python virtual machine.
Jyhton
Python's Java implementation, Jython will dynamically compile the Python code into Java bytecode and run it on the JVM.
IronPython
In Python's C # implementation, IronPython compiles Python code into C # bytecode and then runs on the CLR. (similar to Jython)
PyPy (Special)
Python implements Python, which compiles the Python bytecode into machine code.
Rubypthon, Brython ...
Python Learning 0 Python installation