Python3 pyautogui全解 安装 cmd pip install pyautogui or IDLE import os os.system('pip install pyautogui') 移动鼠标 pyautogui.moveTo(x, y, duration, tween) #duration: 几秒内移动到位置 一般用法: import pyautogui x=10 #int y=10 #int pyautogui.moveTo(x, y) 获取鼠标位置 import pyautog