How to run python

藏色散人
Release: 2019-10-16 11:07:02
Original
6055 people have browsed it

How to run python

How to run python?

Use cmd to run python program

Recommended: "Python Tutorial"

Steps: (1) Open cmd.

How to run python

How to run python

(2) Go to the disk where the file you want to run is located (for example: E disk). Input: e: Enter

How to run python

(3) Open the folder where the file you want to run is located (for example: E:\ABC\123). Input: cd E:\ABC\123 and press Enter

How to run python

(4) Run the program. Input: python ***.py (the name of the program file) and press Enter

How to run python

Extended information

To run python under windows cmd, you need to configure the python environment Variables, now assuming that python is installed in the D:\Python directory, the method to set environment variables is as follows: Method 1. My Computer->Properties->Advanced->Environment Variables->System Variables, find it in the system variables PATH, click "Edit" and add ";D:\Python" (no quotes) at the end

How to run python

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