Logo

Topik sebelumnya

codeop --- Compile Python code

Topik berikutnya

zipimport --- Import modules from Zip archives

Halaman Ini

  • Laporkan Bug
  • Lihat Sumber

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • python logo
  • Python »
  • 3.8.14 Documentation »
  • Pustaka Standar Python »
  • |

Mengimpor ModulΒΆ

Modul yang dijelaskan dalam bab ini memberikan cara baru untuk mengimpor modul Python dan kait lainnya untuk menyesuaikan proses impor.

Daftar lengkap modul yang dijelaskan dalam bab ini adalah:

  • zipimport --- Import modules from Zip archives
    • zipimporter Objects
    • Contoh-contoh
  • 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
    • Pengenalan
    • Fungsi-Fungsi
    • importlib.abc -- Abstract base classes related to import
    • importlib.resources -- Resources
    • importlib.machinery -- Importers and path hooks
    • importlib.util -- Utility code for importers
    • Contoh-contoh
      • 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

Topik sebelumnya

codeop --- Compile Python code

Topik berikutnya

zipimport --- Import modules from Zip archives

Halaman Ini

  • Laporkan Bug
  • Lihat Sumber

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • python logo
  • Python »
  • 3.8.14 Documentation »
  • Pustaka Standar Python »
  • |
© Hak Cipta 2001-2022, 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.

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

Terakhir diperbarui pada Sep 12, 2022. Found a bug?
Created using Sphinx 2.4.4.