Ten dokument dotyczy starej wersji Pythona, która nie jest już wspierana. Powinieneś przejść na wyższą wersję i przeczytać dokumentację Pythona dla bieżącego stabilnego wydania.

Nawigacja

  • indeks
  • moduły |
  • dalej |
  • wstecz |
  • Python »
  • 3.7.17 Documentation »
  • Biblioteka standardowa Pythona »
  • |

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:

  • zipimport — Import modules from Zip archives
    • zipimporter Objects
    • Przykłady
  • 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
    • Introduction
    • 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()

Poprzedni temat

codeop — Compile Python code

Następny temat

zipimport — Import modules from Zip archives

Ta strona

  • Zgłoś błąd
  • Pokaż źródło

Nawigacja

  • indeks
  • moduły |
  • dalej |
  • wstecz |
  • Python »
  • 3.7.17 Documentation »
  • Biblioteka standardowa Pythona »
  • |
© Copyright 2001-2023, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Ostatnia modyfikacja cze 28, 2023. Found a bug?
Created using Sphinx 2.3.1.