This document is for an old version of Python that is no longer supported. You should upgrade and read the Python 当前稳定版本的文档.

导航

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

31. 导入模块¶

本章中介绍的模块提供了导入其他Python模块和挂钩以自定义导入过程的新方法。

本章描述的完整模块列表如下:

  • 31.1. imp — Access the import internals
    • 31.1.1. 例子
  • 31.2. importlib — Convenience wrappers for __import__()
  • 31.3. imputil — Import utilities
    • 31.3.1. Examples
  • 31.4. zipimport — 从 Zip 存档中导入模块
    • 31.4.1. zipimporter 对象
    • 31.4.2. 例子
  • 31.5. pkgutil — 包扩展模块工具
  • 31.6. modulefinder — 查找脚本使用的模块
    • 31.6.1. ModuleFinder 的示例用法
  • 31.7. runpy — Locating and executing Python modules

上一个主题

30.2. Bastion — Restricting access to objects

下一个主题

31.1. imp — Access the import internals

本页

  • 显示源代码

快速搜索

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »
  • Python 标准库 »
© 版权所有 1990-2020, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
Last updated on 6月 19, 2020. 发现了问题?
使用Sphinx2.3.1 创建。