Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # módulo A
- # código global
- for i in range(10):
- print(i)
- # função qualquer
- def some_function():
- print("some function")
- # módulo B
- import A # importando módulo A
- A.some_function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement