📅  最后修改于: 2022-03-11 14:47:04.836000             🧑  作者: Mango
# get the character of a key pressed (no return key needed)
# works only in the command window and with Windows OS
from msvcrt import getch
print "press a char key (escape key to exit)"
while True: …