python2爬虫编码问题

发布时间:2019-06-27 09:53:57编辑:auto阅读(1259)

    import sys
    reload(sys)
    sys.setdefaultencoding('utf-8') # 输出的内容是utf-8格式

关键字