Python language is a compiled language or an interpreted language? (Python program execution)

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

Python language is a compiled language or an interpreted language?

We all know the programming language from the program execution sub-divided into compiled languages ​​and interpreted languages

What language is compiled and interpreted languages?

Python is an interpreted language

Python need to compile the source program, the program can be run directly from the source code. Python interpreter converts the source code into byte code, and then forwards the compiled bytecode to Python virtual machine (the PVM) for execution.

FIG explained below with reference a process:

Here Insert Picture Description

When we run Python files, Python interpreter will perform two steps:

  1. The source code is compiled into bytecode (.pyc files saved in)

  2. Forwards compiled bytecode to be executed in PVM

Thus, the execution of Python programs to clear

So, Python is an interpreted language typical of

Another popular interpreted languages: Java

Guess you like

Origin blog.csdn.net/weixin_43876206/article/details/93332647