爬虫遇到乱码问题!

实例: 转换编码

if font_family is not None:
    # 仅限网易
    font_family = bytes(font_family,encoding='gb18030').decode('utf-8','ignore')

发布了77 篇原创文章 · 获赞 3 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_24137739/article/details/96485840