草庐IT

python - `getwch` 返回的键码是什么?

我正在使用msvcrt.getwch在Python中针对Windows进行交互式提示。文档说:Readakeypressandreturntheresultingcharacterasabytestring.Nothingisechoedtotheconsole.Thiscallwillblockifakeypressisnotalreadyavailable,butwillnotwaitforEntertobepressed.Ifthepressedkeywasaspecialfunctionkey,thiswillreturn'\000'or'\xe0';thenextcallwi