python2.x中:
1. import sys 2. reload(sys) 3. sys.setdefaultencoding(‘utf-8’)
python3.x中:
1. import importlib,sys 2. importlib.reload(sys)
替换即可
python2.x中:
1. import sys 2. reload(sys) 3. sys.setdefaultencoding(‘utf-8’)
python3.x中:
1. import importlib,sys 2. importlib.reload(sys)
替换即可