[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.