Ke Wu Academy takes you to get to know python (3) What language is Python

Ke Wu Academy takes you to get to know python (3) What language is Python

What kind of language is python

Programming languages are mainly divided into compiled and interpreted programming languages

What is the difference between compiled and interpreted type?

The compiler compiles every statement of the source program into machine language and saves it into a binary file, so that the computer can directly run the program in machine language at runtime, and the speed is very fast;

The interpreter only interprets one by one into machine language for the computer to execute when the program is executed, so the running speed is not as fast as the compiled program.

This is because the computer cannot directly recognize and execute the sentences we write, it can only recognize machine language (in binary form)

Compiled vs interpreted


Advantages: The compiler generally has a pre-compilation process to optimize the code. Because the compilation is done only once and no compilation is required at runtime, the execution efficiency of compiled language programs is high.

Can run independently from the language environment.

Disadvantages: If you need to modify after compilation, you need to recompile the entire module. When compiling, the machine code is generated according to the corresponding operating environment, and the migration between different operating systems will be

If there is a problem, different executable files need to be compiled according to the operating system environment.


Advantages: It has good platform compatibility and can run in any environment, provided that the interpreter (virtual machine) is installed and flexible. When you modify the code, you can modify it directly,

It can be deployed quickly without downtime for maintenance.

Disadvantages: It must be explained every time it runs, and its performance is not as good as a compiled language.