代码改变世界

随笔档案-2018年06月

python 编码问题

2018-06-21 21:15 by 懦米虫, 210 阅读, 收藏,
摘要: >>> a="中" >>> a'\xe4\xb8\xad'>>> b=a.decode()Traceback (most recent call last): File "<stdin>", line 1, in <module>UnicodeDecodeError: 'ascii' codec c 阅读全文