如何在notepad++中执行python脚本?
cmd /k cd /d "$(CURRENT_DIRECTORY)" & python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
cmd /k: 表示打开cmd窗口,运行/k后边的命令,并且执行完毕后保留窗口
cd /d "$(CURRENT_DIRECTORY)":cd /d切换目录到$(CURRENT_DIRECTORY)& :用来连接多条命令python "$(FULL_CURRENT_PATH)":用Python 运行当前文件($(FULL_CURRENT_PATH))$(FULL_CURRENT_PATH) :Notepad++的宏定义,表示当前文件的完整路径。ECHO:换行PAUSE: 表示运行结束后暂停(cmd中显示“请按任意键继续. . .”),等待一个按键继续EXIT: 表示“按任意键继续…”后,关闭命令行窗口。转自:https://www.cnblogs.com/juluwangshier/p/11705181.html
相关推荐
YENCSDN 2020-11-17
lsjweiyi 2020-11-17
houmenghu 2020-11-17
Erick 2020-11-17
HeyShHeyou 2020-11-17
以梦为马不负韶华 2020-10-20
lhtzbj 2020-11-17
夜斗不是神 2020-11-17
pythonjw 2020-11-17
dingwun 2020-11-16
lhxxhl 2020-11-16
坚持是一种品质 2020-11-16
染血白衣 2020-11-16
huavhuahua 2020-11-20
meylovezn 2020-11-20
逍遥友 2020-11-20
weiiron 2020-11-16