导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.6.7 文档 »
  • Python 标准库 »
  • |

31. Importing Modules¶

The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process.

The full list of modules described in this chapter is:

  • 31.1. zipimport — Import modules from Zip archives
    • 31.1.1. zipimporter Objects
    • 31.1.2. 示例
  • 31.2. pkgutil — Package extension utility
  • 31.3. modulefinder — Find modules used by a script
    • 31.3.1. Example usage of ModuleFinder
  • 31.4. runpy — Locating and executing Python modules
  • 31.5. importlib — The implementation of import
    • 31.5.1. 概述
    • 31.5.2. Functions
    • 31.5.3. importlib.abc – Abstract base classes related to import
    • 31.5.4. importlib.machinery – Importers and path hooks
    • 31.5.5. importlib.util – Utility code for importers
    • 31.5.6. 示例
      • 31.5.6.1. Importing programmatically
      • 31.5.6.2. Checking if a module can be imported
      • 31.5.6.3. Importing a source file directly
      • 31.5.6.4. Setting up an importer
      • 31.5.6.5. Approximating importlib.import_module()

上一个主题

30.2. codeop — Compile Python code

下一个主题

31.1. zipimport — Import modules from Zip archives

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • zh_CN 3.6.7 文档 »
  • Python 标准库 »
  • |
© 版权所有 2001-2018, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
最后更新于 10月 25, 2018. 发现了问题?
使用Sphinx1.8.1 创建。