python如何while循环while true,一起运行多个函数 |
您所在的位置:网站首页 › python编写循环 › python如何while循环while true,一起运行多个函数 |
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这张图显示了我想要的 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |