首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
Python爬虫时中文乱码的处理
Python爬虫时中文乱码的处理
mac
2024-01-24
38
比较简单,就是设置编码格式即可解决
re_html = requests.get(AIPAI_URL) re_html.encoding='utf-8' #设置编码utf-8即可解决乱码问题 Giser_D
认证博客专家
C/C++
https://github.com/huifeng-kooboo编程爱好者,喜欢学习客户端技术和网站后端技术、对爬虫技术颇有研究
转载请注明原文地址: https://mac.8miu.com/read-483818.html
最新回复
(
0
)