py里的__all__

用于控制 from module import * 时的导出行为。它定义了一个模块的公共接口,明确哪些符号(变量、函数、类)可以被外部访问。__all__ = ['public_func'] # 只导...
3个月前
350