Python msvcrt Module
Check if the Windows-only msvcrt module is available:
import importlib
print(importlib.util.find_spec("msvcrt") is not None)
Try it Yourself »
Note: msvcrt is Windows-only. The Tryit environment does not have this module installed.
Definition and Usage
The msvcrt module provides access to some useful functions of the Microsoft Visual C Runtime.
Members
Member | Description |
---|---|
getch() | Read a keypress without echoing to the console. |
kbhit() | Return True if a keypress is waiting to be read. |
locking() | Lock part of a file. |