BlackFlame33

BlackFlame33

若无力驾驭,自由便是负担。个人博客 https://blackflame33.cn/

Python Study Notes-02

Introduction to the Python Programming Language

Execution of Python Programs#

Source Code#

Python source code files usually have the .py extension. After writing the code, it is handed over to the compiler (which is the interpreter in this case).

Compiler#

When the source code is submitted to the compiler, it is compiled into bytecode, which is represented by files with the .pyc extension. These files are then executed by the interpreter.

Interpreter#

The bytecode is passed to the interpreter called PVM, which starts running the code. The compilation is also done by the interpreter. The execution process involves the PVM reading the bytecode and executing it on the processor. There are different implementations of the interpreter:

CPython#

The original and standard implementation.

Jython#

An implementation used for integration with the Java language.

IronPython#

An implementation used for integration with the .NET framework.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.