工具 -> 编译系统 -> 新编译系统
1
2
3
4
5
6
{
"cmd": ["python.exe","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936"
}
cmd中改为python.exe的实际路径, 保存当前配置文件为: “python3.sublime-build”, 然后在工具->编译系统->选择 “python3”