Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply: I think you wrote the code using Notepad ++, saved it as a. py file, and double-click the File to execute it.
In fact, Notepad ++ has many powerful functions, as long as you have patience to explore.
Your problem can be solved as follows:
1. after writing the program, run F5 directly in Notepad ++. the following dialog box is displayed.
2. enter cmd/k x: & cd "$ (CURRENT_DIRECTORY)" & python "$ (FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT (x: indicates the hard drive letter in the source file of your running Python program)
Run it directly. If you do not want to do this every time, continue with the configuration:
3. Save the script and enter the name and shortcut key.
In this way, you can directly press CTRL + ALT + P to execute the Python code each time, without a flash. Is it easy?
-
Notepad ++ Python development environment (http://www.cnblogs.com/tt-0411/archive/2011/10/30/2229544.html)
)
-
Using Notepad ++'s nppexec plug-in to build a development environment (http://blog.csdn.net/jianren02/article/details/7584770
)