the keyboard python library is not working on MacOS Mojave

前端 未结 0 1771
梦毁少年i
梦毁少年i 2020-11-29 19:41

When I run this code:

import keyboard

def function_that_checks_if_q_is_pressed():
    if keyboard.read_key()=="q":
        print(True)

while True:         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题