sublime3中运行python文件

sublime3中运行python文件


tools->build system->new build stystem

粘贴下面代码
{
"cmd":["python.exe", "-u", "$file"],
"path":"C:/Users/csq/AppData/Local/Programs/Python/Python36-32", // 注意:路径根据自己的python安装路径而定
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}

保存以后命名
然后在tools->build system 可以看到你刚刚保存的

然后就可以编译了 注意要utf-8格式 不然ctrl+b 编译不了

建议pycharm 方便

猜你喜欢

转载自www.cnblogs.com/newmiracle/p/11856268.html