報錯信息
UnicodeEncodeError: 'ascii' codec can't encode character '\u5dfe' in position 11: ordinal not in range(128)
解決方案
import sys
import codecs
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
UnicodeEncodeError: 'ascii' codec can't encode character '\u5dfe' in position 11: ordinal not in range(128)
import sys
import codecs
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())