Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Windows 7 上的 python 2.7 中移动鼠标光标?
def MoveMouse(x,y): #move mouse cursor
你需要的是 Win32api。
import win32api def move_to(x,y): win32api.SetCursorPos((x,y))