如果碰到这种情况,无论你是直接通过draganddrop()还是分步执行clickandhold(),dragtoelement(),或通过by_offset位移都无法实现元素拖拽.只能物理模拟了 win32api.SetCursorPos((300,91))sleep(1)win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,300,91) sleep(0.5)win32api.mouse_event(win32con.MOUSE_MOVED,-…