📜  python key down - Python 代码示例

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

代码示例1
import keyboard  # using module keyboard

if keyboard.is_pressed('e'):  # if key 'e' is pressed 
    print("you're holding the E key!")