@@ -417,17 +417,21 @@ msgid ""
417417" as you won't be making any further use of pip they aren't required - "
418418"although it won't do any harm if you leave them."
419419msgstr ""
420+ "pip 在 ``myapp`` 中创建的 ``.dist-info`` 目录,是可以删除的。这些目录保存了 pip "
421+ "用于管理包的元数据,由于接下来不会再用到 pip,所以不是必须存在,当然留下来也不会有什么坏处。"
420422
421423#: ../../library/zipapp.rst:289
422424msgid "Package the application using:"
423- msgstr ""
425+ msgstr "用以下命令打包: "
424426
425427#: ../../library/zipapp.rst:295
426428msgid ""
427429"This will produce a standalone executable, which can be run on any machine "
428430"with the appropriate interpreter available. See :ref:`zipapp-specifying-the-"
429431"interpreter` for details. It can be shipped to users as a single file."
430432msgstr ""
433+ "这会生成一个独立的可执行文件,可在任何装有合适解释器的机器上运行。详情参见 :ref:`zipapp-specifying-the-"
434+ "interpreter`。可以单个文件的形式分发给用户。"
431435
432436#: ../../library/zipapp.rst:299
433437msgid ""
@@ -437,10 +441,13 @@ msgid ""
437441"fact that the Python interpreter registers the ``.pyz`` and ``.pyzw`` file "
438442"extensions when installed."
439443msgstr ""
444+ "在 Unix 系统中,``myapp.pyz`` 文件将以原有文件名执行。如果喜欢 “普通”的命令名,可以重命名该文件,去掉扩展名 ``.pyz`` "
445+ "。在 Windows 系统中,``myapp.pyz[w]`` 是可执行文件,因为 Python 解释器在安装时注册了扩展名``.pyz`` 和 "
446+ "``.pyzw`` 。"
440447
441448#: ../../library/zipapp.rst:307
442449msgid "Making a Windows executable"
443- msgstr ""
450+ msgstr "制作 Windows 可执行文件 "
444451
445452#: ../../library/zipapp.rst:309
446453msgid ""
@@ -450,6 +457,9 @@ msgid ""
450457"``subprocess.run(['myapp'])`` won't find your application - you need to "
451458"explicitly specify the extension)."
452459msgstr ""
460+ "在 Windows 系统中,可能没有注册扩展名 "
461+ "``.pyz``,另外有些场合无法“透明”地识别已注册的扩展(最简单的例子是,``subprocess.run(['myapp'])`` "
462+ "就找不到——需要明确指定扩展名)。"
453463
454464#: ../../library/zipapp.rst:315
455465msgid ""
0 commit comments