python字符串中的字符串默认并非是unicode,如果在字符创中使用Unicode字符,如中文字符,必须要经过转换,

方式1: text = u"中文"

方式2: text = Unicode("中文")

相关文章: