解决办法 ;
a=r.text.replace('\xa0',' ')
详情参见
https://stackoverflow.com/questions/10993612/python-removing-xa0-from-string
http://www.aobosir.com/blog/2016/11/26/python3-UnicodeEncodeError-gbk-codec-can't-encode-character-xa0/
解决办法 ;
a=r.text.replace('\xa0',' ')
详情参见
https://stackoverflow.com/questions/10993612/python-removing-xa0-from-string
http://www.aobosir.com/blog/2016/11/26/python3-UnicodeEncodeError-gbk-codec-can't-encode-character-xa0/
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。