Python:python the operation process

Source: Internet
Author: User
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

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.