📜  python代码示例中的按键

📅  最后修改于: 2022-03-11 14:46:24.442000             🧑  作者: Mango

代码示例2
import pyautogui

# Holds down the alt key
pyautogui.keyDown("alt")

# Presses the tab key once
pyautogui.press("tab")

# Lets go of the alt key
pyautogui.keyUp("alt")