In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "what are the ways to achieve python", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "what are the ways to achieve python?" this article can help you solve your doubts.
CPython realized by C language
Of all the python versions, python implemented in C is called CPython, which is the most widely used version of python, and it is also the official version of python, so some new language features will be the first to appear here.
JPython implemented by java
Unexpectedly, C language to achieve python,java can also achieve python. JPython is another version of python, which has higher interoperability with the java language than CPython (implemented by java, after all), specifically in that it can use the java code base directly.
JPython finally compiles python code into java bytecode (yes, jdk also compiles java code into bytecode) and then interprets it in the java virtual machine, which means that in fact, the code written by JPython is no different from the code written by java, except that the source code is different (it can be understood as a different source code implementation of the same code).
PyPy implemented by python
If you anticipate the above java implementation of python operation, then python implementation of python can you predict it? In fact, it is also easy to understand that in the computer field, there is a noun called Turing complete language. One of the characteristics of Turing's complete language is that it can realize itself. For example, you can use assembly language to write an assembly language compiler, or you can use C language to write a C language compiler (in fact, the current C language compiler is actually written in C language). Python is also a Turing complete language, so you can use python to implement a python compiler, and then compile the python code (nesting doll behavior).
Implementation of other python languages
Python is implemented not only by the above three language giants, but also by some other languages, such as python, which is implemented in .NET language and C # language. Its operation is similar to that of java, and it can also have better interoperability with .NET language. There is also a special implementation called Stackless, which supports more threads.
After reading this, the article "what are the ways to implement python?" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.