Home > Development Tools > notepad > How to run python in notepad

How to run python in notepad

angryTom
Release: 2019-08-09 09:12:44
Original
8606 people have browsed it

How to run python in notepad

The process of NotePad running python code is actually calling cmd (command prompt) to run the python code, so make sure you have installed python.

Recommended tutorial: notepad graphic tutorial

1. Open the python file with notepad. Or create a new file and save it in .py format.

How to run python in notepad

#2. Run the python file directly and press F5. In the pop-up menu, enter: cmd /k C:\Users\Fengqiao_x\AppData\Local\Programs\Python\Python36\python.exe "$(FULL_CURRENT_PATH)"& PAUSE & EXIT Note: The path must be yours python path.

How to run python in notepad

3. Click Save. Enter your favorite name and shortcut key (choose a shortcut key that is easy to remember, and the shortcut key definition cannot be repeated). Then click OK.

How to run python in notepad

#4. Press the shortcut key you just entered to run the current python file. In the future, you only need to press the shortcut key to run the python file, no previous steps are required. The effect is as follows.

How to run python in notepad

The above is the detailed content of How to run python in notepad. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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 Issues
Why is my hosts notepad blank?
From 1970-01-01 08:00:00
0
0
0
Teacher Notepad++ how to make prompt code
From 1970-01-01 08:00:00
0
0
0
Notepad++ will not use
From 1970-01-01 08:00:00
0
0
0
The contents of hosts notepad are incorrect
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template