python字符串中的字符串默认并不是是unicode,若是在字符创中使用Unicode字符,如中文字符,必需要通过转换,python
方式1: text = u"中文"code
方式2: text = Unicode("中文")unicode