在新建编译系统中输入
{
"cmd": ["py","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936",
}
并保存为 *.sublime-build 文件。
其中红色字体py是Python3命令行的命令,Python2中的命令为python。
在新建编译系统中输入
{
"cmd": ["py","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936",
}
并保存为 *.sublime-build 文件。
其中红色字体py是Python3命令行的命令,Python2中的命令为python。
转载于:https://www.cnblogs.com/mygodfalling/p/7625788.html