1. 首先下载安装包
如果你没有安装包下载的话
百度云路径如下:
pthon3: http://pan.baidu.com/s/1kV1KAEF 密码:z5ea
Sublime: http://pan.baidu.com/s/1bZCEzO 密码:rmij
2.我的软件安装在D盘software-->python目录下,双击进行安装

3.安装路径如下

点击下一步安装即可
3.安装完毕之后,检查运行环境

点击Python (command line)
第一行代码:

敲完之后,回车, 如果现实Hello World, 则表示python安装正确。
4.Sublime直接解压,解压后可以直接用
5.新建一个python文件,例如first.py

6.点击工具 如下图所示

新编译系统后,会有如下文件出来

将文件中内容用以下内容全部替换
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "D:/software/python/soft/python.exe -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
并保存为python3.sublime-build文件

这里,你唯一需要调整的可能就是你的python文件路径,这里是你的安装路径+python.exe,
例如我的安装路径就是D:\software\python\soft,在这路径下你可以看到python.exe,替换一下即可。注意斜杠和反斜杠的区别。
替换编译系统: 选中工具--》编译系统--》python3 即可
7. 然后编写第一行代码

点击工具下的立即编译,即可出现一下效果,编辑器下方会出现以下效果表示成功。

8.安装代码提示插件:SublimeCodeIntel
按快捷键:ctrl + shift + p(或者菜单 首选项 --》版本控制)

回车,等左下角等于号执行完毕,会出现以下弹框。

输入SublimeCodeIntel,回车即可。左下角显示正在安装。
9. 关闭Sublime,重新写py文件,就可以看到有智能提示了,如下

目前开发环境在win7下 新手完全可以自己操作。
网友评论