按照要求复制import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = '包控制.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('验证下载时出错(得到 %s 而不是 %s),请尝试手动安装' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)安装以后显示验证下载时出错(得到 6f4c264a24d933ce70df5dedcf1dcaeeebe013ee18cced0ef93d5f746d80ef60 而不是 2915d1851351e5ee549c20394736b4428bc59f460fa1548d1514676 163dafc88),请尝试手动安装
换vs code