[Python] What is the equivalent to R's interactive() for python? [duplicate]

Discussão em 'Python' iniciado por Stack, Março 26, 2025.

  1. Stack

    Stack Membro Participativo

    in R interactive() returns true if it's being run interactively and false if not.

    I'm trying to get a python script to behave differently depending on if I'm running interactively (where I want to set certain variables manually) vs. running as a script where I would want those variables to be set to the passed arguments.

    thanks in advance

    Continue reading...

Compartilhe esta Página