摘要: python安装 bs4和 beautifulsoup4库,可以 pip3 install bs4 , pip3 install beautifulsoup4安装 beautifulsoup库是做网页代码的处理,可以在爬虫中使用,比正则表达式要简略 可以用如下方法调用,python标准库是不需要再安 阅读全文
posted @ 2020-08-28 19:01 yxlll 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 列表和迭代器的区别 实例: li =[1,2,3,4,5] for i in li.__iter__(): print(i) # print(li.__iter__()) print('#######################################') # a =li.__iter_ 阅读全文
posted @ 2020-08-28 11:52 yxlll 阅读(131) 评论(0) 推荐(0) 编辑