2020
11-29
11-29
python 实现控制鼠标键盘
1、安装类库pipinstallpyautogui2、代码:importpyautogui,time,randompyautogui.PAUSE=3pyautogui.FAILSAFE=Truewidth,height=pyautogui.size()#print(str(width))#print(str(height))defdrawRct():foriinrange(10):pyautogui.moveTo(300,300,duration=0.25)pyautogui.moveTo(400,300,duration=0.25)pyautogui.moveTo(400,400,duration=0.25)pyautogui.moveTo(300,400,duration=0.25)def...
继续阅读 >