@@ -1764,6 +1764,9 @@ msgid ""
17641764"when Python was built*. Unless you want to test for a specific system "
17651765"version, it is therefore recommended to use the following idiom::"
17661766msgstr ""
1767+ "对于 Unix 系统(除 Linux 和 AIX 外),该字符串是 *Python 构建时的* ``uname -s`` "
1768+ "返回的小写操作系统名称,并附加了 ``uname -r`` 返回的系统版本的第一部分,如 ``'sunos5'`` 或 "
1769+ "``'freebsd8'``。除非需要检测特定版本的系统,否则建议使用以下习惯用法::"
17671770
17681771#: ../../library/sys.rst:1108
17691772msgid "For other systems, the values are:"
@@ -1824,6 +1827,8 @@ msgid ""
18241827"older Python versions include the version number, it is recommended to "
18251828"always use the ``startswith`` idiom presented above."
18261829msgstr ""
1830+ "在 Linux 上,:attr:`sys.platform` 将不再包含副版本号。它将总是 ``'linux'`` 而不是 ``'linux2'`` 或"
1831+ " ``'linux3'``。由于旧版本的 Python 会包含该版本号,因此推荐总是使用上述 ``startswith`` 习惯用法。"
18271832
18281833#: ../../library/sys.rst:1126
18291834msgid ""
@@ -1832,12 +1837,14 @@ msgid ""
18321837"Python versions include the version number, it is recommended to always use "
18331838"the ``startswith`` idiom presented above."
18341839msgstr ""
1840+ "在 AIX 上,:attr:`sys.platform` 将不再包含副版本号。它将总是 ``'aix'`` 而不是 ``'aix5'`` 或 "
1841+ "``'aix7'``。由于旧版本的 Python 会包含该版本号,因此推荐总是使用上述 ``startswith`` 习惯用法。"
18351842
18361843#: ../../library/sys.rst:1134
18371844msgid ""
18381845":attr:`os.name` has a coarser granularity. :func:`os.uname` gives system-"
18391846"dependent version information."
1840- msgstr ""
1847+ msgstr ":attr:`os.name` 更加简略。:func:`os.uname` 提供系统的版本信息。 "
18411848
18421849#: ../../library/sys.rst:1137
18431850msgid ""
@@ -1862,14 +1869,16 @@ msgstr ""
18621869msgid ""
18631870"``/usr/lib64/pythonX.Y/``: Standard library (like ``os.py`` of the :mod:`os`"
18641871" module)"
1865- msgstr ""
1872+ msgstr "``/usr/lib64/pythonX.Y/``:标准库(如 :mod:`os` 模块的 ``os.py`` ) "
18661873
18671874#: ../../library/sys.rst:1152
18681875msgid ""
18691876"``/usr/lib64/pythonX.Y/lib-dynload/``: C extension modules of the standard "
18701877"library (like the :mod:`errno` module, the exact filename is platform "
18711878"specific)"
18721879msgstr ""
1880+ "``/usr/lib64/pythonX.Y/lib-dynload/``:标准库的 C 扩展模块(如 :mod:`errno` "
1881+ "模块,确切的文件名取决于平台)"
18731882
18741883#: ../../library/sys.rst:1155
18751884msgid ""
0 commit comments