![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
debug
ITS5AM
blog: liaowh[dot]me
展开
-
python 出现'matplotlib' has no attribute 'imshow'错误, 解决方法
首先确自己正确安装了matplotlib库查看自己的import正确写法应该是from matplotlib import pyplot as plt, 再使用plt.imshow()方法而不是直接import matplotbib后就使用plt.imshow()方法⚠️系个人整理, 如有不正确或者待完善的地方请留言提出…...原创 2018-12-12 19:14:11 · 21607 阅读 · 3 评论 -
python selenium出现TypeError: __init__() takes 2 positional arguments but 3 were given错误解决方法
在使用selenium爬取时, 如出现以下错误:TypeError: __init__() takes 2 positional arguments but 3 were given很有可能你的如下语句有问题:ec.presence_of_element_located(By.ID, 'feed_friend')**注意⚠️presence_of_element_located()方法中传...原创 2018-12-12 19:24:39 · 19699 阅读 · 1 评论