步骤:
1.安装Python、Sublime Text;
2.打开Sublime Text,在菜单栏点击“Tools”->“Build System”->“New Build System...”,将打开一个“untitled.sublime-build”文档;
3.
将“untitled.sublime-build”文档中的所有内容删除,输入以下内容:
1 {
2 "cmd": ["D:/Program Files/Python27/python.exe","-u","$file"],
3 "file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
4 "selector": "source.python",
5 "encoding": "cp936",
6 }
然后保存,命名为“Python27.sublime-build”
4.进入菜单“Tools”->“Build System”,选择刚才保存命名的编译系统Python27;
5.新建文档,输入代码:print ("Hello!"),保存为“.py”后缀的文件,然后按“Ctrl+B”进行编译,如果能正确显示结果,则环境配置完毕!