python
bzxc
这个作者很懒,什么都没留下…
展开
-
爬虫的坑
爬虫相关 昨天在写selenium动态爬虫时,发现之前碰到过的许多问题没有记下来,导致间隔许久之后再次写爬虫时,又要重新search,所以决定记录一下 在用selenium动态爬取网页信息时,我们往往会遇到中间有iframe的情况(如下图)此时则需要给webdriver对象更换frame browser.switch_to_frame("frame_content") 同样,当网页通过点击操作打...原创 2019-12-31 11:24:27 · 152 阅读 · 0 评论 -
python 的 if not
今天突然发现python还有一个if not 的判断句,遂先记下 if not系列语句主要有三种用法: if x is None if not x if not x is None 代码举例: >>> x = 0 >>> not x True >>> x is None False >>> x 0 >>>...原创 2019-08-27 14:28:43 · 348 阅读 · 0 评论