@@ -360,16 +360,20 @@ msgid ""
360360"exact version like \" /usr/bin/env python3.4\" as you will need to change "
361361"your shebang line for users of Python 3.5, for example."
362362msgstr ""
363+ "因为无法指定“python X.Y以上版本”,所以应小心“/usr/bin/env python3.4”这种精确版本的指定方式,因为对于 Python "
364+ "3.5 的用户就得修改释伴行,比如:"
363365
364366#: ../../library/zipapp.rst:254
365367msgid ""
366368"Typically, you should use an \" /usr/bin/env python2\" or \" /usr/bin/env "
367369"python3\" , depending on whether your code is written for Python 2 or 3."
368370msgstr ""
371+ "通常应该用“/usr/bin/env python2”或“/usr/bin/env python3”的格式,具体根据代码适用于 Python 2 还是 "
372+ "3 而定。"
369373
370374#: ../../library/zipapp.rst:259
371375msgid "Creating Standalone Applications with zipapp"
372- msgstr ""
376+ msgstr "用 zipapp 创建独立运行的应用程序 "
373377
374378#: ../../library/zipapp.rst:261
375379msgid ""
@@ -379,30 +383,32 @@ msgid ""
379383"this is to bundle all of the application's dependencies into the archive, "
380384"along with the application code."
381385msgstr ""
386+ "利用 :mod:`zipapp` 模块可以创建独立运行的 Python 程序,以便向最终用户发布,仅需在系统中装有合适版本的 Python "
387+ "即可运行。操作的关键就是把应用程序代码和所有依赖项一起放入打包文件中。"
382388
383389#: ../../library/zipapp.rst:267
384390msgid "The steps to create a standalone archive are as follows:"
385- msgstr ""
391+ msgstr "创建独立运行打包文件的步骤如下: "
386392
387393#: ../../library/zipapp.rst:269
388394msgid ""
389395"Create your application in a directory as normal, so you have a ``myapp`` "
390396"directory containing a ``__main__.py`` file, and any supporting application "
391397"code."
392- msgstr ""
398+ msgstr "照常在某个目录中创建应用程序,于是会有一个 ``myapp`` 目录,里面有个``__main__.py`` 文件,以及所有支持性代码。 "
393399
394400#: ../../library/zipapp.rst:273
395401msgid ""
396402"Install all of your application's dependencies into the ``myapp`` directory,"
397403" using pip:"
398- msgstr ""
404+ msgstr "用 pip 将应用程序的所有依赖项装入 ``myapp`` 目录。 "
399405
400406#: ../../library/zipapp.rst:280
401407msgid ""
402408"(this assumes you have your project requirements in a ``requirements.txt`` "
403409"file - if not, you can just list the dependencies manually on the pip "
404410"command line)."
405- msgstr ""
411+ msgstr "(这里假定在 ``requirements.txt`` 文件中列出了项目所需的依赖项,也可以在 pip 命令行中列出依赖项)。 "
406412
407413#: ../../library/zipapp.rst:284
408414msgid ""
0 commit comments