解决sublime text3 打印乱码

import requests
import io
import sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='gb18030')
response = requests.get("http://*****/")
s=response.content.decode()
# S=s.decode('GBK','ignore')
print(s)
参考地址:http://blog.csdn.net/jim7424994/article/details/22675759#

你可能感兴趣的:(解决sublime text3 打印乱码)