UnicodeDecodeError: 'ascii' codec can't decode byte 0xc7 in position 20: ordinal not in range(128)

 

dict = pickle.load(open(file, 'rb'))

修改为:

dict = pickle.load(open(file, 'rb'), encoding='iso-8859-1')

 



posted @ 2019-04-26 17:45  wjunneng  Views(648)  Comments(0Edit  收藏  举报