<ruby id="8crsp"></ruby>
Logo

上一個主題

codeop --- 編譯Python代碼

下一個主題

zipimport --- 從 Zip 存檔中導入模塊

當前頁面

  • 提交 Bug
  • 顯示源碼

導航

  • 索引
  • 模塊 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python ?
  • Python 3.12.0a0 文檔 ?
  • Python 標準庫 ?
  • 導入模塊
  • |

導入模塊?

本章中介紹的模塊提供了導入其他Python模塊和掛鉤以自定義導入過程的新方法。

本章描述的完整模塊列表如下:

  • zipimport --- 從 Zip 存檔中導入模塊
    • zipimporter 對象
    • 例子
  • pkgutil --- 包擴展工具
  • modulefinder --- 查找腳本使用的模塊
    • ModuleFinder 的示例用法
  • runpy ——查找并執(zhí)行 Python 模塊
  • importlib --- import 的實現(xiàn)
    • 概述
    • 函數(shù)
    • importlib.abc —— 關于導入的抽象基類
    • importlib.machinery —— 導入器和路徑鉤子函數(shù)。
    • importlib.util —— 導入器的工具程序代碼
    • 例子
      • 用編程方式導入
      • 檢查某模塊可否導入。
      • 直接導入源碼文件。
      • 實現(xiàn)延遲導入
      • 導入器的配置
      • importlib.import_module() 的近似實現(xiàn)
  • importlib.resources -- Resources
  • Using importlib.metadata
    • 概述
    • 功能性 API
      • Entry points
      • Distribution metadata
      • Distribution versions
      • Distribution files
      • Distribution requirements
      • Package distributions
    • Distributions
    • Extending the search algorithm
  • The initialization of the sys.path module search path
    • Virtual environments
    • _pth files
    • Embedded Python

上一個主題

codeop --- 編譯Python代碼

下一個主題

zipimport --- 從 Zip 存檔中導入模塊

當前頁面

  • 提交 Bug
  • 顯示源碼
?

導航

  • 索引
  • 模塊 |
  • 下一頁 |
  • 上一頁 |
  • python logo
  • Python ?
  • Python 3.12.0a0 文檔 ?
  • Python 標準庫 ?
  • 導入模塊
  • |
? 版權所有 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.
See History and License for more information.

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

最后更新于 5月 26, 2022. Found a bug?
由 Sphinx 4.5.0創(chuàng)建。

感谢您访问我们的网站,您可能还对以下资源感兴趣:

久久国产免费观看精品3_少妇按摩推油舒服到高潮连连_亚洲色欲色欲www在线观看_国自产在线精品一本无码中文
<style id="u1k9u"></style><u id="u1k9u"></u>
<dl id="u1k9u"></dl>

  • <pre id="u1k9u"></pre>

      1. <pre id="u1k9u"></pre>