Unicode是Python的中间编码,对于gbk的str,需要利用decode('gbk')变成Unicode编码,然后,在利用encode('gbk')输出中文。 转载于:https://www.cnblogs.com/ritchiewang/p/5767394.html