自动安装的方法 - 快捷键ctrl+` 或者View->Show Console,输入如下代码

import  urllib.request,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp,pf),'wb').write(urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())

 

https://blog.csdn.net/kongguyoulan523/article/details/51144254

posted on 2018-04-17 21:53  jarod99  阅读(232)  评论(0编辑  收藏  举报