uni_str = utf8_str.decode('utf-8'); gbk_str = uni_str.encode('gbk'); 转载于:https://www.cnblogs.com/mmix2009/p/3216262.html