[Python] How to write multiple try statements in one block in python?

Discussão em 'Python' iniciado por Stack, Agosto 19, 2025.

  1. Stack

    Stack Membro Participativo

    I want to do:

    try:
    do()
    except:
    do2()
    except:
    do3()
    except:
    do4()


    If do() fails, execute do2(), if do2() fails too, execute do3() and so on.

    Continue reading...

Compartilhe esta Página