#模拟鼠标点击一分钟点击一次x2501 y63 import pyautogui import random def click(): x = random.randint(463, 463) y = random.randint(886, 886) pyautogui.click(x, y) #点击键盘复制 pyautogui.hotkey('ctrl', 'c') #点击键盘粘贴 pyautogui.hotkey('ctrl', 'v') x = random.randint(1428,1428) y = random.randint(966,966) pyautogui.click(x,y) print('刷屏了一次') while True: click()
python刷屏
该文章介绍了如何利用Python的pyautogui库编写一个脚本,模拟鼠标在指定位置随机点击并进行复制粘贴操作,实现持续刷屏效果。
摘要由CSDN通过智能技术生成