用了一段时间pycharm,虽然功能很强大,但是占的内寸也比较大,由于笔记本配置不高,经常卡死。
网上搜了下notepad++比较小巧方便,于是开始捣鼓。。。
安装没啥问题,主要是到了配置,本来感觉很简单的东西结果耗费了我半天时间。。。(>_<)
cmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
cmd /k d: cd D:\new file\python-3.6.4 install\python.exe "$(FULL_CURRENT_PATH)"& PAUSE & EXIT
cmd /k d: cd "D:\new file\python-3.6.4 install>python.exe" "$(FULL_CURRENT_PATH)"& PAUSE & EXIT
cmd /k "D:\new file\python-3.6.4 install"\python.exe "$(FULL_CURRENT_PATH)"& PAUSE & EXIT
cmd /k "D:\new file\python-3.6.4 install\python.exe "$(FULL_CURRENT_PATH)"& PAUSE & EXIT
cmd /k cd /d "$(CURRENT_DIRECTORY)" & python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
试过N次以上这些试过全部不行,最后参考https://www.cnblogs.com/programer-xinmu78/p/10806294.html这样写:
cmd /k cd /d "D:\new file\python-3.6.4 install" & python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
居然成功了。哈哈哈。。。。感谢这篇文章。。。。可以快快乐乐的写代码啦。。。啦。。。啦。。。啦
注意:如果python没有设置系统变量,那么在
cmd /k cd /d "$(CURRENT_DIRECTORY)" & python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
这段内容中的$(CURRENT_DIRECTORY)要用python的路径替换掉