pycharm爬虫运行后console中文出现xe4\xb8\乱码的解决方法

对于Python3爬虫抓取网页中文出现输出乱码 import urllib.request  response = urllib.request.urlopen('http://www.12306.cn/mormhweb/')  html = response.read() print(html) 上面的代码正常但是运行的时候结果遇到中文会以\xe7\x99\xbe\xe5\xba\xa6\xe4
相关文章
相关标签/搜索