python 读取网页标签数据乱码问题(ascii编码问题,用raw_unicode_escape编码进行解码)
废话不多说,直接开干!
decode英文意思是 解码
encode英文原意 编码
可使用encode(‘raw_unicode_escape’)将此str转化为bytes, 再decode为str
可使用decode(‘raw_unicode_escape’)输出内容为bytes形式的字符串
raw_unicode_escape 这个应该生成 unicode编码集
unicode-escape编码集,他是将unicode内存编码值直接存储
<button class="sure">ç¡®å
原创
2021-07-03 16:40:57 ·
979 阅读 ·
0 评论