Python PyPI keyboard - how to remove keyboard event from queue on read_key() operation?

后端 未结 0 407
不思量自难忘°
不思量自难忘° 2020-12-16 19:50

I\'m using PyPI\'s keyboard module to monitor whether the user wants to stop execution of the program:

print(f\'Press ESC to stop or any other key to continue         


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