首页 > 技术文章 > python 模块中__all__作用
alamZ 2017-07-07 08:03 原文
test.py文件开头写上__all__=[func1,func2]
当其他文件导入 from test import *
只会导出"[func1,func2]"里面的,其他调用不行