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

How to run python in notepad

藏色散人
藏色散人Original
2019-11-02 10:14:304733browse

How to run python in notepad

How to run python in notepad?

Open NotePad.

Recommended: "notepad usage tutorial"

How to run python in notepad

Click the F5 key to pop up the run dialog box.

How to run python in notepad

Enter the following command in the input box:

cmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT

How to run python in notepad

Click save, and a shortcut key setting menu will pop up. dialog box.

Name it as python and set the shortcut key to Ctrl Shift F5.

How to run python in notepad

Then, there is one more option in the run menu.

How to run python in notepad

Then create a new 0.py file and enter a line of python command.

How to run python in notepad

Then, hit the shortcut key Ctrl Shift F5 to run.

A cmd window pops up, indicating that the operation is successful.

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!

Statement:
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