1、unicode转化为str str = str_unicode.encode('gbk') 2、str转化为unicode str_unicode= str.decode('gbk') (大坑……随缘持续更新……)