解决python语言在cmd下中文乱码的问题: a = "再见!"print (a.decode('utf-8').encode('gbk')) #解决在cmd下中文乱码的问题 转载于:https://www.cnblogs.com/xieqijiang/p/10950190.html