1. Install Python
https://www.python.org/
2. Modify Environment variables
Add the path of the installation Python to path path
3, Configuration notepad++
A. notepad++/run/"Run" button
B. Enter the following command in the popup window:
cmd/k python "$ (full_current_path)" & ECHO. & PAUSE & EXIT
Then, click Save.
* * Command explanation
cmd/k python: Opens the cmd window, runs the command behind/k, and retains the window after execution is complete. This is Python (because the Python directory has been added to the environment variable, so it is not necessary to specify a directory for Python programs to be found directly).
$ (Full_current_path) : notepad++ macro definition that represents the full path of the current file.
&: Used to connect more than one command.
ECHO: line break
Pause: Indicates a pause after running (cmd displays "Press any key to continue ..."), waiting for a key to continue
EXIT: Indicates "Press any key to continue ..." to close the command line window.
Windows Configuration Python Programming environment