1.找到Tools→Build System→New Build System
2.
将"shell_cmd":"make"改成
{
“cmd”: [“C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32/python.exe”, “-u”, “$file”],
“file_regex”: “^[ ]File \”(…?)\”, line ([0-9]*)”,
“selector”: “source.python”
} 注意这里C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32/python.exe 是python的安装路径,然后保存ok成功运行。
修改快捷键
在Sublime中点击【Preferences】-【Key Bindings-User】,打开配置文件
复制这一句,{ "keys": ["f5"], "command": "build" }并且粘贴到右边,然后保存就大功告成。
关闭退出来,按f5运行试试
增加一个 安装好python后需要 下载一个geckodriver 网址:https://github.com/mozilla/geckodriver/releases 放入python的安装目录