How to run python in notepad?
Open NotePad.
Recommended: "notepad usage tutorial"
Click the F5 key to pop up the run dialog box.
Enter the following command in the input box:
cmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
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.
Then, there is one more option in the run menu.
Then create a new 0.py file and enter a line of python command.
Then, hit the shortcut key Ctrl Shift F5 to run.
A cmd window pops up, indicating that the operation is successful.
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!