一个包里有三个模块,demo1.py、demo2.py、demo3.py,但使用 from tools import *导入模块时,如何保证只有 demo1、demo3 被导入了。

千锋教育

增加_init_.py 文件,并在文件中增加: