[Python] Starting a python shell with arguments

Discussão em 'Python' iniciado por Stack, Junho 18, 2025.

  1. Stack

    Stack Membro Participativo

    is it possible to pass arguments to the python in linux without having a file? I'm currently not able to create a file or change permissions and I don't want to write it inside my code like this:

    import sys
    sys.argv = ["arg1", "arg2", ...]


    I'd like to hand over the arguments while I'm starting the shell:

    python <arguments>

    Continue reading...

Compartilhe esta Página