What is 1.Python?
Like Java and C #,Python is a virtual machine-based language . The process of executing a Java program on the command line by someone familiar with Java development is usually as follows:
Javac Hello.java
Java Hello
Python runs like Java, but combines these two steps into one step. When we enter Python hello.py on the command line, it actually activates the Python interpreter, telling it: You're going to start working, but before the "explain" work, the first work of the Python interpreter is compiled like Java. So, in general,Python is a language that is compiled and interpreted first .
2.Python Operating Process
Pycodeobject is the result of a true compilation of the Python compiler . When the Python program runs, the compiled results are saved in the memory Pycodeobject, and when the Python program finishes running, the Python interpreter writes Pycodeobject back to the PYc file. When the Python program runs for the second time, the program will first look for the PYc file on the hard disk, and if it is found, load it directly or repeat the process. Therefore, it can be said that the PYc file is a persistent way to save Pycodeobject .
Python:python the operation process