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

参考资料:https://stackoverflow.com/questions/40359272/nltk-unicodedecodeerror-connected-with-the-ntpath-py-file

#another way
reload(sys)
sys.setdefaultencoding('GBK')

 

1、修改文件

2、删掉.pyc 文件

3.重新执行

 

posted @ 2018-05-07 15:42  whats  阅读(316)  评论(0编辑  收藏  举报