
sublime本身并不具备运行python程序的能力,需要进行一些设置。
让我们来看看设置sublime可以操作python的方法:
点击“Preference”----》“Browse Packages”----》“python",编辑Python.sublime-build文件,添加python应用程序的路径:
{
"cmd":["python.exe","-u","$file"],
"path":"C:/Python27",
"file_regex":"^[]*File\"(...*?)\",line([0-9]*)",
"selector":"source.python"
}请关注Python自学网了解更多Python知识。