Kody ASCII

0

Witam wiecie jaki jest odpowiednik c++-sowego getch() w Pythonie?

0
Help on built-in function input in module builtins:

input(prompt=None, /)
    Read a string from standard input.  The trailing newline is stripped.
    
    The prompt string, if given, is printed to standard output without a
    trailing newline before reading input.
    
    If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
    On *nix systems, readline is used if available.

A kody ascii: funkcja ord.

ewentualnie jeśli chcesz odczytać np. dokładnie X bajtów:

import sys
sys.stdin.read(X)

1 użytkowników online, w tym zalogowanych: 0, gości: 1