久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <i id='sh1LJ'><tr id='sh1LJ'><dt id='sh1LJ'><q id='sh1LJ'><span id='sh1LJ'><b id='sh1LJ'><form id='sh1LJ'><ins id='sh1LJ'></ins><ul id='sh1LJ'></ul><sub id='sh1LJ'></sub></form><legend id='sh1LJ'></legend><bdo id='sh1LJ'><pre id='sh1LJ'><center id='sh1LJ'></center></pre></bdo></b><th id='sh1LJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='sh1LJ'><tfoot id='sh1LJ'></tfoot><dl id='sh1LJ'><fieldset id='sh1LJ'></fieldset></dl></div>
      • <bdo id='sh1LJ'></bdo><ul id='sh1LJ'></ul>
    1. <legend id='sh1LJ'><style id='sh1LJ'><dir id='sh1LJ'><q id='sh1LJ'></q></dir></style></legend>

      <small id='sh1LJ'></small><noframes id='sh1LJ'>

      1. <tfoot id='sh1LJ'></tfoot>

        __init__.py 是干什么用的?

        What is __init__.py for?(__init__.py 是干什么用的?)
        <tfoot id='YD6Zl'></tfoot>

            <tbody id='YD6Zl'></tbody>
          • <bdo id='YD6Zl'></bdo><ul id='YD6Zl'></ul>
            <legend id='YD6Zl'><style id='YD6Zl'><dir id='YD6Zl'><q id='YD6Zl'></q></dir></style></legend>

            <small id='YD6Zl'></small><noframes id='YD6Zl'>

                • <i id='YD6Zl'><tr id='YD6Zl'><dt id='YD6Zl'><q id='YD6Zl'><span id='YD6Zl'><b id='YD6Zl'><form id='YD6Zl'><ins id='YD6Zl'></ins><ul id='YD6Zl'></ul><sub id='YD6Zl'></sub></form><legend id='YD6Zl'></legend><bdo id='YD6Zl'><pre id='YD6Zl'><center id='YD6Zl'></center></pre></bdo></b><th id='YD6Zl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YD6Zl'><tfoot id='YD6Zl'></tfoot><dl id='YD6Zl'><fieldset id='YD6Zl'></fieldset></dl></div>

                • 本文介紹了__init__.py 是干什么用的?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  Python 源目錄中的 __init__.py 是什么?

                  What is __init__.py for in a Python source directory?

                  推薦答案

                  它曾經(jīng)是包的必需部分(舊的,3.3 之前的常規(guī)包",而不是 較新的 3.3+ "命名空間包").

                  It used to be a required part of a package (old, pre-3.3 "regular package", not newer 3.3+ "namespace package").

                  這是文檔.

                  Python 定義了兩種類型的包,常規(guī)包和命名空間包.常規(guī)包是 Python 3.2 及更早版本中存在的傳統(tǒng)包.常規(guī)包通常實(shí)現(xiàn)為包含 __init__.py 文件的目錄.當(dāng)一個常規(guī)包被導(dǎo)入時,這個 __init__.py 文件被隱式執(zhí)行,并且它定義的對象被綁定到包的命名空間中的名稱.__init__.py 文件可以包含任何其他模塊可以包含的相同 Python 代碼,并且 Python 會在模塊被導(dǎo)入時添加一些額外的屬性.

                  Python defines two types of packages, regular packages and namespace packages. Regular packages are traditional packages as they existed in Python 3.2 and earlier. A regular package is typically implemented as a directory containing an __init__.py file. When a regular package is imported, this __init__.py file is implicitly executed, and the objects it defines are bound to names in the package’s namespace. The __init__.py file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported.

                  但是只需點(diǎn)擊鏈接,它包含一個示例,更多信息,以及命名空間包的解釋,沒有__init__.py的那種包.

                  But just click the link, it contains an example, more information, and an explanation of namespace packages, the kind of packages without __init__.py.

                  這篇關(guān)于__init__.py 是干什么用的?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                  Configuring Python to use additional locations for site-packages(配置 Python 以使用站點(diǎn)包的其他位置)
                  How to structure python packages without repeating top level name for import(如何在不重復(fù)導(dǎo)入頂級名稱的情況下構(gòu)造python包)
                  Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                  How to refresh sys.path?(如何刷新 sys.path?)
                  Distribute a Python package with a compiled dynamic shared library(分發(fā)帶有已編譯動態(tài)共享庫的 Python 包)

                    <i id='2JISp'><tr id='2JISp'><dt id='2JISp'><q id='2JISp'><span id='2JISp'><b id='2JISp'><form id='2JISp'><ins id='2JISp'></ins><ul id='2JISp'></ul><sub id='2JISp'></sub></form><legend id='2JISp'></legend><bdo id='2JISp'><pre id='2JISp'><center id='2JISp'></center></pre></bdo></b><th id='2JISp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2JISp'><tfoot id='2JISp'></tfoot><dl id='2JISp'><fieldset id='2JISp'></fieldset></dl></div>

                      <tbody id='2JISp'></tbody>
                    <tfoot id='2JISp'></tfoot>
                  1. <small id='2JISp'></small><noframes id='2JISp'>

                      <legend id='2JISp'><style id='2JISp'><dir id='2JISp'><q id='2JISp'></q></dir></style></legend>
                      • <bdo id='2JISp'></bdo><ul id='2JISp'></ul>

                          • 主站蜘蛛池模板: 亚洲成人精品影院 | 羞羞视频免费观看入口 | 伊人超碰 | 亚洲欧美日韩中文在线 | 午夜精品一区二区三区在线 | 久久免费精品 | 欧美极品在线 | 国产一区二区在线视频 | 先锋资源网站 | 成人午夜免费在线视频 | 欧美精品在线一区二区三区 | 亚洲精品乱码久久久久久蜜桃 | 美女在线视频一区二区三区 | av成人在线观看 | 国产精品久久久久久久久久久免费看 | 亚洲欧美日韩在线 | 欧产日产国产精品99 | 九九热在线观看视频 | 99热视| 国产福利精品一区 | 伊人精品在线 | 日韩视频专区 | 成人三级电影 | 奇米av| 国产一区二区视频免费在线观看 | 麻豆视频国产在线观看 | 蜜桃臀av一区二区三区 | 成在线人视频免费视频 | 一级看片免费视频囗交动图 | 精品国产乱码久久久久久中文 | 影音先锋久久 | 国产一区二区在线免费播放 | 久草福利 | 午夜性色a√在线视频观看9 | 久久国产精品色av免费观看 | 三级在线观看 | 韩国精品在线 | 国产精品成人在线 | 亚洲精品一区av在线播放 | 午夜丰满寂寞少妇精品 | 国产精品一区二区三区四区五区 |