Home >Backend Development >Python Tutorial >How to open Python in windows
Two ways to run Python in Windows
Understand the programming environment
1 Direct Enable Python from the command line. Of course, if you enter python directly in cmd, you need to set it in the path environment variable in windows.
At this time, the ">>>" symbol will appear when running python in cmd. It means that python has entered the interactive running mode, and simple python commands can be done in this mode.
2. One is to use its own development environment IDLE.
Run the command cmd at the start of the run, enter dos mode, and enter python to enter the python interactive environment.
2. One is to use its own development environment IDLE.
Go to the IDLE interface
## 3. The interactive interface can be used for simple learning and writing larger programs You should go to the specific python file. The default suffix for python files is .py. We can create a new text file and change the suffix extension to .py, then Finally, select run module under Run in the menu to run. The shortcut key is F5. For more Python related technical articles, please visit the
Python Tutorial column to learn!
The above is the detailed content of How to open Python in windows. For more information, please follow other related articles on the PHP Chinese website!