@@ -667,6 +667,10 @@ msgid ""
667667"compiled Python bytecode files are platform independent (but not independent"
668668" from the Python version by which they were compiled!)."
669669msgstr ""
670+ "总而言之,平台是一组硬件和软件资源的组合,例如所有运行 Solaris 2.x 操作系统的 Sparc 机器会被视为相同平台,但运行 Solaris "
671+ "2.x 的 Intel 机器是另一种平台,而运行 Linux 的 Intel 机器又是另一种平台。 相同操作系统的不同主要发布版通常也会构成不同的平台。"
672+ " 非 Unix 操作系统的情况又有所不同;这类系统上的安装策略差别巨大因此 prefix 和 exec-prefix 是没有意义的,并将被设为空字符串。"
673+ " 请注意已编译的 Python 字节码是独立于平台的(但并不独立于它们编译时所使用的 Python 版本!)"
670674
671675#: ../../c-api/init.rst:421
672676msgid ""
@@ -675,6 +679,8 @@ msgid ""
675679"while having :file:`/usr/local/plat` be a different filesystem for each "
676680"platform."
677681msgstr ""
682+ "系统管理员知道如何配置 :program:`mount` 或 :program:`automount` 程序以在平台间共享 "
683+ ":file:`/usr/local` 而让 :file:`/usr/local/plat` 成为针对不同平台的不同文件系统。"
678684
679685#: ../../c-api/init.rst:433
680686msgid ""
@@ -684,6 +690,9 @@ msgid ""
684690"into static storage; the caller should not modify its value. The value is "
685691"available to Python code as ``sys.executable``."
686692msgstr ""
693+ "返回 Python 可执行文件的完整程序名称;这是作为根据程序名称(由上述 :c:func:`Py_SetProgramName` "
694+ "设置)派生默认模块搜索路径的附带影响计算得出的。 返回的字符串将指向静态存储;调用方不应修改其值。 该值将以 ``sys.executable`` "
695+ "的名称供 Python 代码使用。"
687696
688697#: ../../c-api/init.rst:447
689698msgid ""
@@ -697,6 +706,10 @@ msgid ""
697706"startup; it can be (and usually is) modified later to change the search path"
698707" for loading modules."
699708msgstr ""
709+ "返回默认模块搜索路径;这是根据程序名称(由上述 :c:func:`Py_SetProgramName` 设置)和某些环境变量计算得出的。 "
710+ "返回的字符串由一系列由依赖于平台的分隔符分开的目录名称组成。 分隔符在 Unix 和 macOS 上为 ``':'`` 而在 Windows 上为 "
711+ "``';'``。 返回的字符串将指向静态存储;调用方不应修改其值。 列表 :data:`sys.path` "
712+ "将在解释器启动时使用该值来初始化;它可以在随后被修改(并且通常都会被修改)以变更加载模块的搜索路径。"
700713
701714#: ../../c-api/init.rst:467
702715msgid ""
@@ -739,7 +752,7 @@ msgstr "现在 :data:`sys.executable` 将使用程序的完整路径,而不是
739752msgid ""
740753"Return the version of this Python interpreter. This is a string that looks "
741754"something like ::"
742- msgstr ""
755+ msgstr "返回 Python 解释器的版本。 这将为如下形式的字符串 :: "
743756
744757#: ../../c-api/init.rst:500
745758msgid ""
@@ -749,6 +762,8 @@ msgid ""
749762"not modify its value. The value is available to Python code as "
750763":data:`sys.version`."
751764msgstr ""
765+ "第一个单词(到第一个空格符为止)是当前的 Python 版本;前面的字符是以点号分隔的主要和次要版本号。 "
766+ "返回的字符串将指向静态存储;调用方不应修改其值。 该值将以 :data:`sys.version` 的名称供 Python 代码使用。"
752767
753768#: ../../c-api/init.rst:510
754769msgid ""
0 commit comments