Home >Backend Development >Python Tutorial >What interpreter should I use to learn python?
Python is an interpreter language. To run the code, it must be executed through an interpreter. There are many interpreters for Python, which are developed based on different languages. Each interpreter has different Features, but can run Python code normally. The following are five commonly used Python interpreters:
1, CPython
When we download and install it from the Python official website After Python 2.7, we directly got an official version of the interpreter: CPython.
This interpreter is developed in C language, so it is called CPython. Running python from the command line starts the CPython interpreter. CPython is the most widely used Python interpreter. All code in the tutorial is also executed under CPython.
2. PyPy
PyPy is another Python interpreter. Its goal is execution speed. PyPy uses JIT technology to dynamically compile Python code, so it can Significantly improves the execution speed of Python code (mostly).
Both python codes can be run under PyPy, but there are some differences between PyPy and CPython, which results in the same python code executing under the two interpreters may have different results.
If your code is to be executed under PyPy, you need to understand the differences between PyPy and CPython.
3. IPython
IPython is an interactive interpreter based on CPython. That is to say, IPython is only enhanced in the interactive mode, but the execution The functions of Python code are exactly the same as CPython. For example, although many domestic browsers have different appearances, the kernel actually calls IE.
4. Jython
Jython is a Python interpreter running on the Java platform. It can directly compile Python code into Java bytecode for execution.
5. IronPython
IronPython is similar to Jython, except that IronPython is a Python interpreter running on the Microsoft .Net platform and can directly compile Python code into . Net bytecode.
Among Python interpreters, CPython is widely used. For Python compilation, in addition to using the above interpreters for compilation, highly skilled developers can also write their own Python interpreters according to their own needs. It is very convenient to execute Python code!
Related learning recommendations: python tutorial
The above is the detailed content of What interpreter should I use to learn python?. For more information, please follow other related articles on the PHP Chinese website!