Introdução aos packages (pacotes) em Python
This commit is contained in:
14
aula99_package/modulo.py
Normal file
14
aula99_package/modulo.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# __all__ = [
|
||||
# 'variavel',
|
||||
# 'soma_do_modulo',
|
||||
# 'nova_variavel',
|
||||
# ]
|
||||
|
||||
variavel = 'Alguma coisa'
|
||||
|
||||
|
||||
def soma_do_modulo(x, y):
|
||||
return x + y
|
||||
|
||||
|
||||
nova_variavel = 'OK'
|
||||
Reference in New Issue
Block a user