用sublime3写python

1. 在sublime3控制台里输入下面字串,安装package control插件

import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

2. 安装python支持插件 Anaconda

3. setting-default里,增加如下设置,转换tab为空格

"translate_tabs_to_spaces": true

4. 黑色主题 

安装Theme - Soda 主题,然后设置

"theme": "Soda Dark.sublime-theme"

posted @ 2016-03-25 19:32  xwbxn  阅读(92)  评论(0编辑  收藏  举报