Dokumen ini untuk versi lama Python yang tidak didukung lagi. Anda harus memutakhirkan, dan membaca Dokumentasi Python untuk rilis stabil saat ini.

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python »
  • 3.6.15 Documentation »
  • Pustaka Standar Python »
  • |

31. 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:

  • 31.1. zipimport --- Import modules from Zip archives
    • 31.1.1. zipimporter Objects
    • 31.1.2. Contoh-contoh
  • 31.2. pkgutil --- Package extension utility
  • 31.3. modulefinder --- Find modules used by a script
    • 31.3.1. Example usage of ModuleFinder
  • 31.4. runpy --- Locating and executing Python modules
  • 31.5. importlib --- The implementation of import
    • 31.5.1. Pengenalan
    • 31.5.2. Fungsi-Fungsi
    • 31.5.3. importlib.abc -- Abstract base classes related to import
    • 31.5.4. importlib.machinery -- Importers and path hooks
    • 31.5.5. importlib.util -- Utility code for importers
    • 31.5.6. Contoh-contoh
      • 31.5.6.1. Importing programmatically
      • 31.5.6.2. Checking if a module can be imported
      • 31.5.6.3. Importing a source file directly
      • 31.5.6.4. Setting up an importer
      • 31.5.6.5. Approximating importlib.import_module()

Topik sebelumnya

30.2. codeop --- Compile Python code

Topik berikutnya

31.1. zipimport --- Import modules from Zip archives

Halaman Ini

  • Laporkan Bug
  • Lihat Sumber

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python »
  • 3.6.15 Documentation »
  • Pustaka Standar Python »
  • |
© Hak Cipta 2001-2021, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Terakhir diperbarui pada Des 29, 2021. Found a bug?
Created using Sphinx 2.3.1.