下面是一种循环运行这段代码的方法:
import os
import time
import pyautogui
while True:
# your code here
# ...
# add a delay to control the loop speed
time.sleep(1)
这样,代码就会无限循环运行,每次循环间隔为 1 秒。
下面是一种循环运行这段代码的方法:
import os
import time
import pyautogui
while True:
# your code here
# ...
# add a delay to control the loop speed
time.sleep(1)
这样,代码就会无限循环运行,每次循环间隔为 1 秒。