Python报错
-
TypeError: cannot use a string pattern on a bytes-like object 这种情况解决方法就是加上html=html.decode('utf-8')#python3这句代码;
-
AttributeError: module 'urllib' has no attribute 'urlopen'这种情况的解决办法就是将urllib改成urllib.request就行了。
3.gensim函数库中Word2Vec函数size,iter参数错误解决( init() got an unexpected keyword argument ‘size‘)
4.AttributeError: module 'numpy' has no attribute 'arrange'
arange
参考链接:
[1] TypeError: cannot use a string pattern on a bytes-like object的解决办法