Whenever I press either the up or down key I am unable to press the other key in the loop

前端 未结 0 1576
臣服心动
臣服心动 2020-11-28 02:00
key2 = "down arrow"
key = "up arrow"
def main():
    while True:  
 
        if keyboard.is_pressed(key): 
            dice_roll()
            ke         


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