import pyautogui
import random
import time
# 远程连接时需要开启,不会在断开桌面连接后程序中断
pyautogui.FAILSAFE = False
while True:
x = random.randint(-200, 200)
pyautogui.moveRel(x, x)
print("win不息屏脚本",x)
time.sleep(30)
02-05