1. notepad++ writing a python script
1) Create new file, write code
2) Click on the menu bar, "language", " P", "Python", set the script for the Python language highlighting (so when saving text,notepad++ can also automatically identify the file type is . py)
3) Save: Do not have special characters in the Save Path (Chinese, white space, other special characters), otherwise there may be abnormal situation during the late development, such as can't find the file or folder, Chinese can't recognize the problem
4) Run script (two methods)
A. Open Windows command line tool cmd (start search bar input cmd), go to script folder, execute command python xxxx.py, run script
B. run through notepad++
After the 6.5.2 version of the notepad++, click on the menu bar " file", " open Folder" , "command line ", at this time, cmd has switched to the directory of the script file. In the command-line window that pops up
Execution command python xxxx.py, run the script.
#未完待续 ......><
Some tips for Python development