摘要:
selenium自动化模拟的时候,有时候要模拟到拖动滚动条,所以放上代码啦~ 下面代码是直接拉到底 for i in range(4, 9):time.sleep(0.5)driver.execute_script('window.scrollTo(0, document.body.scrollHe 阅读全文
摘要:
f = open("test.txt", "r") while True: line = f.readline() if line: pass # do something here line=line.strip() p=line.rfind('.') filename=line[0:p] pri 阅读全文