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.重新执行

猜你喜欢

转载自www.cnblogs.com/whats/p/9003093.html