1
skydiver 2012 年 11 月 25 日
这个就是utf8编码吧,只不过是按照16进制显示的
|
4
timonwong 2012 年 11 月 25 日
|
5
yuelang85 2012 年 11 月 25 日
L = [unicode("中国", 'utf-8'), 'a', 'b'];
|
7
timonwong 2012 年 11 月 26 日
|
10
Niris 2012 年 11 月 26 日
你需要的是 python3。
|
11
andy12530 OP |
12
Kai 2012 年 11 月 26 日
moved to /go/python :)
|
13
binux 2012 年 11 月 26 日
你需要的是一个修改版的pprint
https://github.com/binux/binux-tools/blob/master/python/pprint.py |
14
ergatea 2012 年 11 月 26 日
L = [u"中国", 'a', 'b'];
|
15
qiuhanyuan 2015 年 12 月 23 日
如果是在 json 中的怎么办呢?虽然将这个 unicode 值取出来打印是中文,但是打印 json 字符串或者字典还是 /uxxxx 编码。
|