[Python] Using msvcrt on Android. Or similar

Discussão em 'Python' iniciado por Stack, Abril 21, 2025.

  1. Stack

    Stack Membro Participativo

    I'm making a small text-based game with Python 3.5 And I wanted to add a function, something like

    "Press Enter to Continue..."

    So I searched, and there was this code.

    def enter():
    input('Press Enter to Continue...')
    import msvcrt as m
    def wait():
    m.getch()


    I had no idea what msvcrt is(and I still don't...I learned Python for a month...), but this worked quite well, until I tried to run my code on an Android phone with an app called QPython 3.X.

    It turns out that msvcrt is something that is inside Windows OS, so I can't use it on Android.

    So what I am asking is this:

    1. Is it possible to use(or call) msvcrt on Android?
    2. Can I do "Press Enter to Continue..." on Android? I only need the effect like that in anyways.

    Thank you guys for reading this.

    Continue reading...

Compartilhe esta Página