2020
12-10
12-10
Python控制鼠标键盘代码实例
python控制鼠标键盘其实很容易,我们在写程序的时候很多时候会用的到!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)py...
继续阅读 >