摘要: from pynput.keyboard import Controller, Key, Listener # 监听按压 def on_press(key): try: print("正在按压:", format(key.char)) except AttributeError: print("正在 阅读全文
posted @ 2021-04-20 11:11 trysocket 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 国际惯例先上源https://github.com/boppreh/keyboard#键盘输入 from pynput.keyboard import Key,Controller,Listener keyboard = Controller() keyboard.press("a") #按下a k 阅读全文
posted @ 2021-04-20 10:39 trysocket 阅读(377) 评论(0) 推荐(0) 编辑