I have a test
folder
the structure within the folder
__init.py__
aa.py
test.py
for aa.py
class aa:
def __init__(self,max):
self.max=max
print max+1
def hello(self):
print(max)
for test.py
import aa
abc = aa(100)
abc.hello()
when run test.py
, I have an error
abc = aa(100)
TypeError: 'module' object is not callable
What is the problem?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…