💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](zipimport.xhtml "zipimport --- Import modules from Zip archives") | - [上一页](codeop.xhtml "codeop --- Compile Python code") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | # 导入模块 本章中介绍的模块提供了导入其他Python模块和挂钩以自定义导入过程的新方法。 本章描述的完整模块列表如下: - [`zipimport` --- Import modules from Zip archives](zipimport.xhtml) - [zipimporter Objects](zipimport.xhtml#zipimporter-objects) - [示例](zipimport.xhtml#examples) - [`pkgutil` --- Package extension utility](pkgutil.xhtml) - [`modulefinder` --- 查找脚本使用的模块](modulefinder.xhtml) - [`ModuleFinder` 的示例用法](modulefinder.xhtml#example-usage-of-modulefinder) - [`runpy` --- Locating and executing Python modules](runpy.xhtml) - [`importlib` --- The implementation of `import`](importlib.xhtml) - [概述](importlib.xhtml#introduction) - [函数](importlib.xhtml#functions) - [`importlib.abc` -- Abstract base classes related to import](importlib.xhtml#module-importlib.abc) - [`importlib.resources` -- Resources](importlib.xhtml#module-importlib.resources) - [`importlib.machinery` -- Importers and path hooks](importlib.xhtml#module-importlib.machinery) - [`importlib.util` -- Utility code for importers](importlib.xhtml#module-importlib.util) - [示例](importlib.xhtml#examples) - [Importing programmatically](importlib.xhtml#importing-programmatically) - [Checking if a module can be imported](importlib.xhtml#checking-if-a-module-can-be-imported) - [Importing a source file directly](importlib.xhtml#importing-a-source-file-directly) - [Setting up an importer](importlib.xhtml#setting-up-an-importer) - [Approximating `importlib.import_module()`](importlib.xhtml#approximating-importlib-import-module) ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](zipimport.xhtml "zipimport --- Import modules from Zip archives") | - [上一页](codeop.xhtml "codeop --- Compile Python code") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - [Python 标准库](index.xhtml) » - $('.inline-search').show(0); | © [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。