When learning python, I often hear people mention python scripts. So what exactly is a python script? The following article will take you through it, I hope it will be helpful to you.
Python is a computer programming language, an object-oriented dynamically typed language, and a scripting language. Originally designed for writing automated scripts (shells), it is often used for maintenance and automated operations of various servers. It has rich and powerful libraries. It is often nicknamed the glue language, which can easily connect various modules made in other languages (especially C/C).
The python script is a program file written in python language, ending with ".py", and saved in plain text; the ".py" file contains an entire python program.
In Python, the original program code will be placed in the .py file; and Python will compile the program in .py form into an intermediate file (byte-compiled) when executing the .py file. .pyc file, the purpose of doing this is to speed up the execution of the file next time.
The above is the detailed content of what is python script. For more information, please follow other related articles on the PHP Chinese website!