# encoding: utf-8 ''' unicode字符串解码显示 ''' import sys
reload(sys) sys.setdefaultencoding('utf-8')
a = 'u5b64' aa = a.decode('unicode-escape') print aa, repr(aa)