瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • zh_TW 3.8.0b1 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |

匯入模組¶

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:

  • zipimport --- Import modules from Zip archives
    • zipimporter Objects
    • Examples
  • pkgutil --- Package extension utility
  • modulefinder --- Find modules used by a script
    • Example usage of ModuleFinder
  • runpy --- Locating and executing Python modules
  • importlib --- import 的实现
    • 簡介
    • Functions
    • importlib.abc -- Abstract base classes related to import
    • importlib.resources -- Resources
    • importlib.machinery -- Importers and path hooks
    • importlib.util -- Utility code for importers
    • Examples
      • Importing programmatically
      • Checking if a module can be imported
      • Importing a source file directly
      • Setting up an importer
      • Approximating importlib.import_module()
  • Using importlib.metadata
    • Overview
    • Functional API
      • Entry points
      • Distribution metadata
      • Distribution versions
      • Distribution files
      • Distribution requirements
    • Distributions
    • Extending the search algorithm

上個主題

codeop --- Compile Python code

下個主題

zipimport --- Import modules from Zip archives

本頁

  • Report a Bug
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • zh_TW 3.8.0b1 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |
© 版權所有 2001-2019, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 7月 04, 2019。 Found a bug?
Created using Sphinx 2.0.1.