Python develops "one" initial python

Source: Internet
Author: User

  • One, C and Python, Java, C # differences

    C Language: The code compiles the machine code, the machine code executes directly on the processor, each instruction controls the CPU to work

    Other languages: Code compiles to get bytecode, virtual machines execute bytecode and convert to machine code and then execute on processor

    The language of Python and C Python was developed by C.

    For use with: Python's class library is complete and concise, if you want to implement the same functionality, Python 10 lines of code can be solved, C may require 100 lines or more.
    For speed: Python runs faster than C, forcing it to slow down.

    Python and Java, C #, etc.

    For use with: Linux original Python, no other languages; The above languages have a very rich class library support
    For speed: Python may be slightly slower in speed

    So, there is no essential difference between Python and other languages, other differences are: being good at a field, rich in talent, preconceived

  • Two,the type of Python
    • Cpython
      The official version of Python, implemented using the C language, is the most widely used, and the CPython implementation converts the source file (py file) into a bytecode file (PYc file) and then runs on the Python virtual machine.
    • Jyhton
      Python Java implementation, Jython will dynamically compile Python code into Java bytecode, and then run 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 Python bytecode bytecode into machine code.
    • Rubypython, Brython ...

    In addition to PyPy, the corresponding relationship and execution flow of Python are as follows:

    PyPy, the Python bytecode is further processed on the basis of Python, which improves execution speed!

Python develops "one" initial python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.