import pyautogui
    
    # 移动鼠标
    pyautogui.moveTo(42, 1188, duration=0.25)
    
    # 获取鼠标的位置
    print(pyautogui.position())
    
    # 点击鼠标
    pyautogui.click(100, 300, button='left')
    pyautogui.doubleClick(100, 300)
    
    # 拖动鼠标
    pyautogui.dragRel(200, 0, duration=0.2)
    
    # 滚动鼠标
    pyautogui.scroll(100)
    
    # 截屏
    img = pyautogui.screenshot()
    
    # 定位图像
    pyautogui.locateOnScreen('submit.png')
    pyautogui.center(pyautogui.locateOnScreen('submit.png'))
    
    # 输入文字
    pyautogui.typewrite('Hello word!')
    
    # 点击按键
    pyautogui.typewrite(['a', 'b', 'left', 'left', 'X', 'Y'])
    
    # 打出 $ 字符
    pyautogui.keyDown('shift')
    pyautogui.press('4')
    pyautogui.keyUp('shift')
    
    # 热键组合
    pyautogui.hotkey('command', 'a')