Home > Article > Development Tools > How to run python program in notepad?
How does notepad run python programs?
1. Find the anaconda installation directory, then find python.exe, and copy its path. My personal one is G:\Anaconda3\python.exe, which can be seen in the properties.
Recommended: "notepad usage tutorial"
2. Press F5 in Notepad and enter cmd /k G:\Anaconda3 \python.exe "$(FULL_CURRENT_PATH)" & PAUSE & EXIT
3. Save and set shortcut keys
4.Test
The above is the detailed content of How to run python program in notepad?. For more information, please follow other related articles on the PHP Chinese website!