在用pycharm爬取个别网页信息的时候,里面的中文都是乱码,

解决方法很简单,只需要设置一下字符集就好,

也就是在代码最前面添加如下代码

#-*- coding : utf-8-*-
# coding:unicode_escape