import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding=‘utf-8‘) #改变标准输出的默认编码
python 更改默认输出 解决编码常出错问题
原文:https://www.cnblogs.com/smartisn/p/14426659.html