瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • 3.7.14 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 --- The implementation of 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()

上個主題

codeop --- Compile Python code

下個主題

zipimport --- Import modules from Zip archives

本頁

  • Report a Bug
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • 3.7.14 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • |
© 版權所有 2001-2022, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
最後更新於 9月 08, 2022。 Found a bug?
Created using Sphinx 2.3.1.