![]() | 1 sujin190 2014-06-11 20:07:06 +08:00 json? |
![]() | 2 alexapollo 2014-06-11 20:07:50 +08:00 u'这是一个字符串' |
3 shinerene OP @alexapollo 又尝试了一下 发现好像是存入到了list中的原因,如果直接给a赋值 ”你好“,浏览器出书还是”你好“ ,但是如果把a存入到了list中 再打印出来就是/xe03之类的了 |
5 shinerene OP @decken 对的 我不是很理解,比如说a=“你好” 在终端中a = '\xe4\xbd\xa0\xe5\xa5\xbd' 但是print a就是你好。。。这是为什么呢。。 |
![]() | 6 alexapollo 2014-06-11 21:15:22 +08:00 list的话要先做一下escape unicode |
![]() | 7 yakczh 2014-06-11 21:48:52 +08:00 换python3 一劳永逸地解决编码问题,不用再折腾填坑了 |
8 shinerene OP @alexapollo 已经解决~ |