python pickle奇怪报错 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)

python pickle编码问题,具体原因暂未能解释

解决方法:fields_dict[field] = pickle.load(f)

改成 fields_dict[field] = pickle.load(f, encoding='latin1') 或者 encoding='bytes'

问题解决

posted @ 2020-12-20 19:57  qiezi_online  阅读(169)  评论(0编辑  收藏  举报