赞
踩
简单的实现方式
pip install keyboard
import keyboard as k def callback(a): print(a) k.hook(callback) k.wait('space')