1.打开sublime text3,Tools/build system/New build system..., 将该文件名保存位“Python3.sublime-build”,文件配置信息如下:
{ "cmd": ["C:/Users/Lynn/AppData/Local/Programs/Python/Python36/python.exe","-u","$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python", "encoding": "cp936", } |
其中,将python路径改成本地电脑上python安装路径即可。
2.选择Tools/build System/ python3
3.编写好python程序,保存,Ctl + B即可运行。