![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
anaconda
wakeworld
这个作者很懒,什么都没留下…
展开
-
python3.6:加载jieba时候报错:parse( ) got an unexpected keyboard argument transport_encoding
python3.6:加载jieba时候报错:parse( ) got an unexpected keyboard argument transport_encoding处理办法:先输入pip install jieba,再输入:conda install pip可解决上述问题。原创 2018-03-24 10:03:13 · 743 阅读 · 1 评论 -
python3.6报错:AttributeError: 'str' object has no attribute 'decode'
错误源代码: class_list.append(folder.decode('utf-8')) ;修改方法:把decode改为encode即可。原创 2018-03-26 18:02:02 · 78188 阅读 · 13 评论 -
object of type 'zip' has no len()
解决方法:Try using list(zip(...) where you have zip(...)原创 2018-03-26 18:14:23 · 3343 阅读 · 0 评论 -
报错 'dict' object has no attribute 'has_key'
has_key方法在python2中是可以使用的,在python3中删除了。比如:if dict.has_key(word):改为:if word in dict:原创 2018-03-26 18:17:56 · 4650 阅读 · 0 评论 -
'zip' object is not subscriptable
list(zip(*ngram))[0]改为:next(zip(*ngram))原创 2018-03-26 19:54:55 · 942 阅读 · 0 评论