Home > Development Tools > notepad > body text

How to run python in notepad

angryTom
Release: 2019-08-09 09:12:44
Original
8408 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:
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!