1.打开Sublime Text 3,依次进入new build system菜单
2.点击菜单后,会生成一个空配置文件,需要在这个配置文件内覆盖配置信息。
3.添加如下代码
{
"cmd":["C:/Users/Administrator/AppData/Local/Programs/Python/Python36- 32/python.exe","-u","$file"],
"file_regex":"^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector":"source.python"
}

cmd后面跟着的是python.exe的路径,复制时 注意把 \ 改成 /
否则会出错
4.save 保存为Python3
5.Tools - build system -选择 python3即可

6.运行程序试验一下

网友评论