O ponto de vista do __main__ pode te confundir em módulos e pacotes Python

This commit is contained in:
Luiz Otávio
2022-11-05 12:04:34 -03:00
parent 94f262d5ca
commit 239139151f
4 changed files with 20 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
# 'soma_do_modulo',
# 'nova_variavel',
# ]
from aula99_package.modulo_b import fala_oi
variavel = 'Alguma coisa'
@@ -12,3 +13,4 @@ def soma_do_modulo(x, y):
nova_variavel = 'OK'
# fala_oi()