摘要: 1.str="10条数据" 输入: str=str[:-3] print(str) 输出:str=10 2.str="共10条数据" 输入: str=str[1:-3] print(str) 输出:str=10 3.“共165条数据,每页10条,一共多少页?” 输入:165//10+1页 //:取整 阅读全文
posted @ 2021-03-25 20:00 _titleInfo 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1.time.sleep(1):强制等待1s,使用效果明显但是脚本执行也变慢不少 2.隐式等待:使用一次后全程生效 1 def wait(self,seconds): 2 self.driver.implicity_wait(seconds) 3.显式等待 from selenium.webdriv 阅读全文
posted @ 2021-03-25 19:56 _titleInfo 阅读(83) 评论(0) 推荐(0) 编辑
//雪花飘落效果