在Sublime Text中新建Python编译系统

在新建编译系统中输入

{
"cmd": ["py","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936",
}

并保存为  *.sublime-build  文件。

 

其中红色字体py是Python3命令行的命令,Python2中的命令为python。

posted @ 2018-03-27 23:31  Hemmelfort  阅读(547)  评论(0编辑  收藏  举报