How do I create a library without having to import like this: from x import *
or from x import y
? Only by importing import x
.
Who can answer me, please use the script below as a library example.
def imprimir():
print('Olá!')
NOTE: I want to give import nome_da_biblioteca
and not have to use from nome_da_biblioteca import imprimir
or from nome_da_biblioteca import *
.