1.监听键盘按键
from pynput.keyboard import Listener
def press(key):
print(key.char)
with Listener(on_press = press) as listener:
listener.join()
文章标签 python的pgzrun判断按键按下 监听键盘 文章分类 Python 后端开发
1.监听键盘按键
from pynput.keyboard import Listener
def press(key):
print(key.char)
with Listener(on_press = press) as listener:
listener.join()
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M