python 爬虫错误记录

一、UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 116: invalid continuation bytehtml 问题缘由:html = response.read().decode('utf-8'),代码里面这样读取网页,可是目标小说网站的网页编码为gbk性能 解决办法:html = respons
相关文章
相关标签/搜索