Home  >  Article  >  Backend Development  >  How to run files in python

How to run files in python

coldplay.xixi
coldplay.xixiOriginal
2020-08-27 13:25:0713622browse

How to run a file in python: first press the [win r] key and enter cmd to open the cmd window; then drag the [.py] file into the cmd window or enter the file path; finally press Enter. run.

How to run files in python

Related learning recommendations: python tutorial

How to run files in python:

Method 1: cmd window

1. Press win r at the same time, enter cmd, and press Enter, that is The cmd window can be opened.

How to run files in python

2. Drag the .py file into the cmd window, or enter the file path and press Enter to run.

How to run files in python

Method 2: python comes with IDLE tool

1. Find the python folder in the start menu and open the IDLE tool.

How to run files in python

#2. Click file--open in sequence, find the required .py file, open it, and press F5 to execute.

How to run files in python

The above is the detailed content of How to run files 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