config.lazy_import¶ 懒加载处理 在 0.3.0 版本加入. Functions¶ lazy_import(→ tuple[list[str], ...) 为 __init__ 文件生成 __all__ 和 __getattr__ Module Contents¶ lazy_import(properties: dict[str, str], /) → tuple[list[str], collections.abc.Callable[[str], Any]]¶ 为 __init__ 文件生成 __all__ 和 __getattr__ 参数: properties (dict[str, str]) -- 属性字典 dict[属性, 模块] 返回: 返回 tuple[__all__, __getattr__] 返回类型: tuple[tuple[str, ...], Callable[[str], Any]] 在 0.3.0 版本加入.