Home  >  Article  >  Backend Development  >  what is python script

what is python script

青灯夜游
青灯夜游Original
2019-05-07 09:47:2312048browse

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.

what is python script

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Why is Python so popular?Next article:Why is Python so popular?