import pyautogui
import random
import time
while True:
time.sleep(10)
x = random.randint(500,800)
y = random.randint(500,800)
try:
pyautogui.moveTo(x,y,duration=2)
except:
print('好家伙!竟然有错,不过没关系')
import pyautogui
import random
import time
while True:
time.sleep(10)
x = random.randint(500,800)
y = random.randint(500,800)
try:
pyautogui.moveTo(x,y,duration=2)
except:
print('好家伙!竟然有错,不过没关系')