解决UnicodeEncodeError: 'ascii' codec can't encode character
作者:互联网
直接上代码:
import os
import sys
import importlib
importlib.reload(sys)
import codecs
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
sys.path.append(os.getcwd())
标签:importlib,stdout,character,sys,codec,codecs,encode,import,os 来源: https://blog.csdn.net/weixin_39461307/article/details/95199493