Logo

上一个主题

30.2. Bastion — Restricting access to objects

下一个主题

31.1. imp — Access the import internals

本页

  • 显示源代码

快速搜索

This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release.

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • Python 2.7.18 文档 »
  • The Python Standard Library »
  • |

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. imp — Access the import internals
    • 31.1.1. Examples
  • 31.2. importlib — Convenience wrappers for __import__()
  • 31.3. imputil — Import utilities
    • 31.3.1. Examples
  • 31.4. zipimport — Import modules from Zip archives
    • 31.4.1. zipimporter Objects
    • 31.4.2. Examples
  • 31.5. pkgutil — Package extension utility
  • 31.6. modulefinder — Find modules used by a script
    • 31.6.1. Example usage of ModuleFinder
  • 31.7. runpy — Locating and executing Python modules

上一个主题

30.2. Bastion — Restricting access to objects

下一个主题

31.1. imp — Access the import internals

本页

  • 显示源代码

快速搜索

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • Python 2.7.18 文档 »
  • The Python Standard Library »
  • |
© 版权所有 1990-2025, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 8月 10, 2025.
Created using Sphinx 2.3.1.