u'…'的用法
以下是我在运行时的结果,有无u中文都可以正常显示,与此节中说的不加u,中文就不能 正常显示有异议,为什么?
Python 2.6.6 (r266:84292, Sep 4 2013, 07:46:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print u'你好'
你好
>>> print '你好'
你好
>>> print '中文'
中文
>>>