ucanuupnobb
ucanuupnobb copied to clipboard
__init__.py 模块有啥用
How do you create a package so that the following reference will work?
p = mytools.myparser.MyParser() Declare the myparser package in mytools.py Create an init.py in the home dir Inside the mytools dir create a init.py and myparser.py Create a myparser.py directory inside the mytools directory This can not be done