定义一个字符串

>>> u"abc"
u'abc'
>>> str(u"abc")
'abc'

可以使用unicode字符集,可以用uncode()函数

 

>>> unicode('\xc3\xa4\xc3\xb6\xc3\xbc', 'utf-8')

u'\xe4\xf6\xfc'