ucanuupnobb icon indicating copy to clipboard operation
ucanuupnobb copied to clipboard

__init__.py 模块有啥用

Open liujuanjuan1984 opened this issue 5 years ago • 0 comments

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

liujuanjuan1984 avatar Nov 11 '19 10:11 liujuanjuan1984