<small id='673Zq'></small><noframes id='673Zq'>

      1. <tfoot id='673Zq'></tfoot>

          <bdo id='673Zq'></bdo><ul id='673Zq'></ul>
      2. <i id='673Zq'><tr id='673Zq'><dt id='673Zq'><q id='673Zq'><span id='673Zq'><b id='673Zq'><form id='673Zq'><ins id='673Zq'></ins><ul id='673Zq'></ul><sub id='673Zq'></sub></form><legend id='673Zq'></legend><bdo id='673Zq'><pre id='673Zq'><center id='673Zq'></center></pre></bdo></b><th id='673Zq'></th></span></q></dt></tr></i><div id='673Zq'><tfoot id='673Zq'></tfoot><dl id='673Zq'><fieldset id='673Zq'></fieldset></dl></div>
      3. <legend id='673Zq'><style id='673Zq'><dir id='673Zq'><q id='673Zq'></q></dir></style></legend>

        什么是 Python 蛋?

        时间:2023-09-14

        <tfoot id='V1z4r'></tfoot>
      4. <legend id='V1z4r'><style id='V1z4r'><dir id='V1z4r'><q id='V1z4r'></q></dir></style></legend>

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

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

                  <bdo id='V1z4r'></bdo><ul id='V1z4r'></ul>
                  本文介绍了什么是 Python 蛋?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我是 Python 新手,我只是想了解它的包是如何工作的.大概 eggs 是某种包装机制,但什么是它们所扮演角色的快速概述,可能是关于它们为什么有用以及如何创建它们的一些信息?

                  I'm new to Python and I'm just trying to understand how its packages work. Presumably eggs are some sort of packaging mechanism, but what would be a quick overview of what role they play and may be some information on why they're useful and how to create them?

                  推荐答案

                  注意:鸡蛋包装已被车轮包装取代.

                  与Java中的.jar文件的概念相同,它是一个.zip文件,其中一些元数据文件重命名为.egg,用于分发代码作为包.

                  Same concept as a .jar file in Java, it is a .zip file with some metadata files renamed .egg, for distributing code as bundles.

                  具体来说:Python Eggs的内部结构

                  Python 蛋"是一个逻辑结构,体现了一个Python 项目的特定版本,包括其代码、资源、和元数据.有多种格式可用于物理编码一个 Python 蛋,其他的可以开发.然而,Python 鸡蛋的一个关键原则是它们应该是可发现的,并且可导入.也就是说,Python 应用程序应该可以轻松有效地找出系统上存在哪些鸡蛋,以及以确保所需的鸡蛋内容是可导入的.

                  A "Python egg" is a logical structure embodying the release of a specific version of a Python project, comprising its code, resources, and metadata. There are multiple formats that can be used to physically encode a Python egg, and others can be developed. However, a key principle of Python eggs is that they should be discoverable and importable. That is, it should be possible for a Python application to easily and efficiently find out what eggs are present on a system, and to ensure that the desired eggs' contents are importable.

                  .egg 格式非常适合分发和简单卸载或升级代码,因为该项目本质上是自包含在单个目录或文件中,不与任何其他项目的代码或资源.这也使得拥有同时安装一个项目的多个版本,这样各个程序可以选择他们希望使用的版本.

                  The .egg format is well-suited to distribution and the easy uninstallation or upgrades of code, since the project is essentially self-contained within a single directory or file, unmingled with any other projects' code or resources. It also makes it possible to have multiple versions of a project simultaneously installed, such that individual programs can select the versions they wish to use.

                  这篇关于什么是 Python 蛋?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 Python 中创建命名空间包? 下一篇:如何删除使用 Python 的 easy_install 安装的软件包

                  相关文章

                  最新文章

                  <tfoot id='uCdGz'></tfoot>

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

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

                    1. <legend id='uCdGz'><style id='uCdGz'><dir id='uCdGz'><q id='uCdGz'></q></dir></style></legend>
                      • <bdo id='uCdGz'></bdo><ul id='uCdGz'></ul>