python 更改默认输出 解决编码常出错问题

解决代码:

import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8') #改变标准输出的默认编码
原文地址:https://www.cnblogs.com/smartisn/p/14426659.html