@ Introducing Python: Modern Computing in Simple Packages by Bill Lubanovic (No. 3104 / 12833)
a file named
__init__.py
. This can be empty, but Python needs it to treat the directory containing it as a package.
Connexes: À quoi sert «__init __. Py»?
answered Nov 7 '10 at 3:31
caritos
Un exemple d'importation de mydir / spam /
est introduit dans la réponse par.
Recommended Posts