sublime 中 选择菜单 Tools--> Build System-->New Build System,编辑文件如下:
/usr/local/Cellar/python/3.7.0 修改为自己的安装目录
{
"cmd":["/usr/local/Cellar/python/3.7.0/bin/python3", "-u", "$file"],
"path":"/usr/local/Cellar/python/3.7.0",
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python"
}
保存为 xxx.sublime-build文件,Tools-->Build System 选择此构建名称,Command+B 即可运行文件