python 模块中__all__作用

test.py文件开头写上__all__=[func1,func2]

当其他文件导入  from test import *

只会导出"[func1,func2]"里面的,其他调用不行

原文地址:https://www.cnblogs.com/alamZ/p/7130215.html