python requests 乱码解决

r = requests.get(login_page)

print r.text 会显示中文乱码

r.encoding = r.apparent_encoding

这样OK

猜你喜欢

转载自wzgdavid.iteye.com/blog/2376314
今日推荐