Home  >  Article  >  Backend Development  >  What is the bat file in python

What is the bat file in python

little bottle
little bottleOriginal
2019-05-14 09:31:406194browse

The bat file in python is a batch file. It can be used to call a python script, or it can be started by python coding to achieve a certain task.

What is the bat file in python

Nowadays, Python is one of the most popular languages, and many people in the computer industry and IT enthusiasts are learning or using it. In the process of use, some files will be generated, such as a file with a .py extension, which is a code file written in Python language. However, some friends found out during the operation that there was a bat file and they were very curious. Now I will talk to you about what a bat file is.

The bat file is a batch file under dos. A batch file is an unformatted text file that contains one or more commands. Its file extension is .bat or .cmd.

Enter the name of the batch file at the command prompt, or double-click the batch file, and the system will call cmd.exe to run the commands in the file one by one in the order they appear. Use batch files (also known as batch programs or scripts) to streamline routine or repetitive tasks.

The bat file in Python is sometimes used to call Python scripts, and sometimes it is started by python coding to achieve a certain task.

The above is the detailed content of What is the bat file in python. 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