懒人python编译环境设置:
步骤:
py32.sublime-build内容
{
"env": {
"PATH":"D:\\Users\\User\\Desktop\\AutoTest\\Python37-32;%PATH%"
},
"shell_cmd": "python -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
//"encoding": "cp936"
"encoding": "utf-8"
}
python地址:D:\\Users\\User\\Desktop\\AutoTest\\Python37-32
保存到sublime的路径:
关闭sublime窗口,然后再打开
最后测试