1.unicode转utf-8格式:
a="unicode格式的字符"
a=a.encode("utf-8")
2.utf-8转unicode格式:
s2 = unicode("人生苦短,为要转换的utf-8格式字符", "utf-8")