[Learn python with me] Explain the execution principle in Python and explain the execution principle in python.

Source: Internet
Author: User

[Learn python with me] Explain the execution principle in Python and explain the execution principle in python.

The explain Execution here is relative to the compilation execution. We all know that a program written in C/C ++ or another compilation language needs to be converted from the source file to the machine language used by the computer, A binary executable file is formed after the link of the linker. When running this program, you can load the binary program from the hard disk to the memory and run it.

But for Python, The python source code does not need to be compiled into binary code. It can run programs directly from the source code. When we run the python file program,Python InterpreterConvert source code to bytecode, and thenPython InterpreterTo execute these bytecode. In this way, python does not have to worry about program compilation, Library Link loading, and other issues.

Python has the following three features:

To implement a language on a specific computer, you must first determine the virtual computer that represents the semantic interpretation of the language. A key problem is that the basic expression during program execution isThe machine language on the actual computer is also the machine language of the Virtual Machine. This problem determines the implementation of the language. According to the answer to this question, the programming language can be divided into two categories:Compiled and interpreted languages.


Explain the execution process of this Python Function

It is indeed recursive. When executing the command, one yield is passed to another yield, which seems inefficient.
This is similar to the example given at the end of this article:
Www.ibm.com/..rm-20/

In other words, listing = [I for I in fun] seems to be a List = List (fun)

Python beginners installed python today, but cannot correctly execute the helloworld command.

Python is optimistic about the version number of your textbook. Currently, python is in the coexistence stage of 2.4, 2.5, 2.6, and 3.x. There are many differences between python 2.4 and 2.5.2.6, and a small part of python 2.5 is different from python 2.6. x is the same as 2. x is quite different.

Related Article

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.