python 监听鼠标和键盘

目录python 监听鼠标和键盘 python 监听鼠标和键盘 开始前安装 pynput pip install pynput from pynput import keyboard, mouse # 监听鼠标点击事件 def on_click(x, y, button, pressed): if
posted @ 2024-02-07 09:47  liwenchao1995  阅读(87)  评论(0编辑  收藏  举报