摘要:
from pynput.keyboard import Controller, Key, Listener # 监听按压 def on_press(key): try: print("正在按压:", format(key.char)) except AttributeError: print("正在 阅读全文
摘要:
国际惯例先上源https://github.com/boppreh/keyboard#键盘输入 from pynput.keyboard import Key,Controller,Listener keyboard = Controller() keyboard.press("a") #按下a k 阅读全文