Reply content:
I think you are using notepad++ to write the code, save the file in. py format, and then double-click the file to execute it.
In fact notepad++ has a lot of powerful features, as long as you have the patience to explore.
Your problem can be solved like this:
1. After writing the program, run F5 directly inside the notepad++, the following dialog box appears
2. Enter cmd/k x: & CD "$ (current_directory)" & Python "$ (full_current_path)" & ECHO in the input run program name. & PAUSE & EXIT (where x: is the hard drive letter stored by the source file of the Python program you are running)
You can run it directly. If you do not want to do this every time, please continue to configure:
3. Save the script and enter the name and shortcut key
This way, each time you finish writing Python code, you can execute it directly ctrl+alt+p, and there will be no flash. Isn't it simple?
-
notepad++ Build the Python development environment ( http://www. Cnblogs.com/tt-0411/arc hive/2011/10/30/2229544.html
)
-
Use notepad++ 's nppexec plug-in to build the development environment ( HTTP// blog.csdn.net/jianren02 /article/details/7584770
)