/***** 为什么上传的 图片 不显示 ,唉唉--
在刚开始使用sublime 时,如何在 sublime 中 编写 并运行 python 文件
1.工具(tool)-->编译系统(build-system)-->新编译系统 出现下图所示文件
2. 将 此段代码复制 进来
{
"cmd": ["**python_url**","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936",
}
**python_url** 对应你的 python安装路径
例如 我的 (有点长。。)就是:
{ "cmd": ["C:\\Users\\pandap\\AppData\\Local\\Programs\\Python\\Python36-32\\pythonw.exe","-u","$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python", "encoding": "cp936", }
然后保存在路径 Sublime\Data\Packages\User下,命名为 Python.sublime-build
3.测试
新建一个文件 ,保存时 要保存为 XXX.py ,否则会出错;
编写 简单的 print() , 保存 ,Ctrl + B 运行
Success ! All right !