Python如何查看汉字的unicode码
打开Python解释器,
>>> u'语言'u'\u8bed\u8a00'
str = "我爱派森" #u'str出错
Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2Type "copyright", "credits" or "license()" for more information.==== No Subprocess ====>>> str = "我爱派森">>> str.decode('UTF-8')u'\u6211\u7231\u6d3e\u68ee'>>>