Python advanced "First article": Introduction to Python

Source: Internet
Author: User

Python introduction to the origin of 1.Python

Python is a programming language written by the famous "Uncle Turtle" Guido van Rossum during Christmas 1989 to send a boring Christmas.

2.C and Python, Java, C # and other languages of the connection and difference

Machine code refers to the computer can recognize the language--0/1, programming language ==> byte code ==> machine code

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

Python and C

The language of Python is developed by C.

C language is a hardware-close language that can be used to write operating systems, so the C language is suitable for developing programs that seek to run faster and give full play to hardware performance. Python is a high-level programming language for writing applications.

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

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 be slow.

In simple terms: Python is more concise, but slower; C is more complex, but runs faster

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: good at a field, rich in talent, preconceived.

Types of 3.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.

    • Jpython

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. PyPy, the Python bytecode is further processed on the basis of Python, which improves execution speed!

    • Other

such as Rubypython, Brython ...

Python advanced "First article": Introduction to 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.