添加代码
import sys import codecs sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
Python3中出现UnicodeEncodeError: 'ascii' codec can't encode characters in ordinal not in range(128)的解决方法
原文地址:https://www.cnblogs.com/liangxc/p/10228027.html
时间: 2024-10-04 00:09:40