📜  python 键盘按住键 - Python 代码示例

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

代码示例1
import time

keyboard = Controller()

time.sleep(2)
keyboard.press('w')
time.sleep(2)
keyboard.release('w')