[Python] from ... import OR import ... as for modules

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

  1. Stack

    Stack Membro Participativo

    Should I use

    from foo import bar


    OR

    import foo.bar as bar


    when importing a module and there is no need/wish for changing the name (bar)?

    Are there any differences? Does it matter?

    Continue reading...

Compartilhe esta Página