导入模块¶
本章中介绍的模块提供了导入其他Python模块和挂钩以自定义导入过程的新方法。
本章描述的完整模块列表如下:
zipimport— 从 Zip 存档中导入模块pkgutil— 包扩展工具modulefinder— 查找脚本使用的模块runpy——查找并执行 Python 模块importlib—import的实现importlib.resources– Resources- Deprecated functions
importlib.resources.abc– Abstract base classes for resources- 使用
importlib.metadata - The initialization of the
sys.pathmodule search path