def function():
while True:
...omission...(this function is repeated permanently)
i =0
while i < 4:
driver.execute_script("""window.open("URL")""")
driver.switch_to.window(driver.window_handles[-1])
time.sleep(1)
function()
time.sleep(1)
i += 1 #open new tab and run function.
它不起作用,因为 while true 循环永久重复。有没有办法同时运行多个功能? https://imgur.com/a/4SIVekS这张图显示了我想要的
料青山看我应如是
呼唤远方
相关分类