python、cpython、IPython、Jython区别

python、cpython、IPython、Jython小谈

python

Python is an interpreted language. When the code is executed, it will be translated line by line into machine code that the CPU can understand. This translation process is very time-consuming and therefore very slow. The C program is directly compiled into machine code that the CPU can execute before running, so it is very fast.
To run the code, you need a Python interpreter to execute the .py file.

CPython

When we downloaded and installed Python 3.x from the official Python website, we directly obtained an official version of the interpreter: CPython. This interpreter is developed in C language, so it is called CPython. Running python on the command line is to start the CPython interpreter.
CPython is the most widely used Python interpreter.

IPython

IPython is an interactive interpreter based on CPython, that is, IPython is only enhanced in interactive mode, but the function of executing Python code is exactly the same as CPython. For example, although many domestic browsers have different appearances, the kernel actually calls IE.
CPython uses >>> as the prompt, and IPython uses In [serial number]: as the prompt.

Jython

Jython is a Python interpreter running on the Java platform, which can directly compile Python code into Java bytecode for execution.

Guess you like

Origin blog.csdn.net/qq_36079986/article/details/110734765