 
                        用requests写的爬虫, 用了线程池,爬页面中的链接,并输出,结果中穿插了下面两种报错,请问如何解决(python2.7)
1.encoding error : input conversion failed due to input error,
2.I/O error : encoder error
gist:https://gist.github.com/azurefang/a35f634beac535ebe10d
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
性浪的编码是 gb2312.
编码解码无非:
str decode('编码类型') 得到 unicode, unicode encode('编码类型') 得到 str