sublime text3配置python编译器

xiaoxiao2021-02-28  42

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即可运行。

转载请注明原文地址: https://www.6miu.com/read-2613761.html

最新回复(0)