How to run files in python

coldplay.xixi
Release: 2020-08-29 11:31:50
Original
13574 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!