python 更改默认输出 解决编码常出错问题 解决代码: import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8') #改变标准输出的默认编码