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