码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-05-07 16:12:15      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:s/4   dede   nal   def   err   position   pos   nec   range   

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

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

 

1、修改文件

2、删掉.pyc 文件

3.重新执行

 

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

标签:s/4   dede   nal   def   err   position   pos   nec   range   

原文地址:https://www.cnblogs.com/whats/p/9003093.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!