PYTHON UnicodeDecodeError: ✀ascii✀ codec can✀t decode byte 0xa8 in position 6: ordi

2024-12-16 05:48:31
推荐回答(1个)
回答1:

加入:
import sys
defaultencoding = 'utf-8'
if sys.getdefaultencoding() != defaultencoding:
reload(sys)
sys.setdefaultencoding(defaultencoding)