在SublimeText3中配置Python开发环境

在Sublime Text 3菜单中依次打开【Tools】【Build System】【New Build System】选项
然后在新建的配置文档中输入如下代码,注意正确配置python安装路径:

 {
    "cmd": ["C:/Users/Groot/AppData/Local/Programs/Python/Python37/python.exe","-u","$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
}

保存文件为"Python3.sublime-build“
之后在编写python文件的时候,选择【Tools】【Build System】【Python3】选项,按Ctrl+B即可运行代码

你可能感兴趣的:(Python)