How to ignore function keys in msvcrt.getch()

后端 未结 0 1006
挽巷
挽巷 2021-02-05 16:42

In Python, msvcrt.getch() also catches the key codes for function keys (F1 - F12). For example, if I press F11 while msvcrt.getch() is waiting for input, it returns both b\'\\xe

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