所谓的 C 标准库(C standard library),是指在 ISO C 或者 POSIX 标准中定义的: POSIX is a superset(超集) of the standard C library, and it's important to note that it defers to it. If C and POSIX is ever in conflict, C wins. 1. conio.h conio 是 Console Input/Output (控制台输入输出)…
原代码来自 https://code.activestate.com/recipes/134892-getch-like-unbuffered-character-reading-from-stdin/ 同时支持windows和unix平台 class _Getch: """Gets a single character from standard input. Does not echo to the screen.""" def __init…