File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 95.03 %" , "updated_at" : " 2024-04-20T23:57:21Z " }
1+ {"translation" : " 95.05 %" , "updated_at" : " 2024-04-21T06:56:33Z " }
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ msgid ""
3535"**Source code:** :source:`Lib/genericpath.py`, :source:`Lib/posixpath.py` "
3636"(for POSIX) and :source:`Lib/ntpath.py` (for Windows)."
3737msgstr ""
38+ "**源代码:** :source:`Lib/genericpath.py`, :source:`Lib/posixpath.py` (用于 POSIX)"
39+ " 和 :source:`Lib/ntpath.py` (用于 Windows)。"
3840
3941#: ../../library/os.path.rst:14
4042msgid ""
@@ -355,7 +357,7 @@ msgstr ""
355357
356358#: ../../library/os.path.rst:298
357359msgid "Added support for detecting non-root mount points on Windows."
358- msgstr ""
360+ msgstr "增加了在 Windows 上检测非根挂载点的支持。 "
359361
360362#: ../../library/os.path.rst:307
361363msgid ""
Original file line number Diff line number Diff line change @@ -617,6 +617,8 @@ msgid ""
617617"around a point that is not the mean. If it is missing or ``None`` (the "
618618"default), the arithmetic mean is automatically calculated."
619619msgstr ""
620+ "如果给出了可选的第二个参数 *mu*,它应为 *data* 的 *众数* 均值。 它也可以被用来计算一个非均值点的二阶距。 如果该参数被省略或为 "
621+ "``None`` (默认值),则会自动进行算术均值计算。"
620622
621623#: ../../library/statistics.rst:457
622624msgid ""
@@ -686,6 +688,8 @@ msgid ""
686688"mean of *data*. If it is missing or ``None`` (the default), the mean is "
687689"automatically calculated."
688690msgstr ""
691+ "如果给出了可选的第二个参数 *xbar*,它应为 *data* 的 *样本* 均值。 如果该参数省略或为 ``None`` "
692+ "(默认值),则会自动进行均值计算。"
689693
690694#: ../../library/statistics.rst:528
691695msgid ""
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ msgid ""
8484":pypi:`typing_extensions` package provides backports of these new features "
8585"to older versions of Python."
8686msgstr ""
87+ "新特性被频繁添加到 ``typing`` 模块中。 :pypi:`typing_extensions` 包提供了这些新特性针对较旧版本 Python "
88+ "的向下移植。"
8789
8890#: ../../library/typing.rst:48
8991msgid ""
@@ -2852,6 +2854,9 @@ msgid ""
28522854"params>` namespaces. For a class ``C``, return a dictionary constructed by "
28532855"merging all the ``__annotations__`` along ``C.__mro__`` in reverse order."
28542856msgstr ""
2857+ "这往往与 ``obj.__annotations__`` 相同。 此外,编码为字符串字面值的前向引用是通过在 ``globals``, "
2858+ "``locals`` 和 (如果可用) :ref:`类型形参 <type-params>` 命名空间中执行求值来处理的。 对于一个类 "
2859+ "``C``,将返回一个由所有 ``__annotations__`` 与 ``C.__mro__`` 逆序合并构建而成的字典。"
28552860
28562861#: ../../library/typing.rst:2896
28572862msgid ""
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ msgstr ""
303303msgid ""
304304"The documentation for :pypi:`defusedxml` on PyPI has further information "
305305"about all known attack vectors with examples and references."
306- msgstr ""
306+ msgstr "PyPI 上 :pypi:`defusedxml` 的文档包含关于所有已知攻击向量的更多信息并附带示例和参考资料。 "
307307
308308#: ../../library/xml.rst:135
309309msgid "The :mod:`!defusedxml` Package"
@@ -317,3 +317,5 @@ msgid ""
317317"data. The package also ships with example exploits and extended "
318318"documentation on more XML exploits such as XPath injection."
319319msgstr ""
320+ ":pypi:`defusedxml` 是一个纯 Python 软件包,它修改了所有 stdlib XML 解析器的子类,可以防止任何潜在的恶意操作。 "
321+ "对于解析不受信任的 XML 数据的任何服务器代码推荐使用此软件包。 该软件包还附带了关于其他 XML 漏洞(如 XPath 注入)的利用示例和扩展文档。"
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ msgid ""
3838"if no system time zone data is available, the library will fall back to "
3939"using the first-party :pypi:`tzdata` package available on PyPI."
4040msgstr ""
41+ ":mod:`zoneinfo` 模块根据 :pep:`615` 中的原始规范说明提供了一个具体的时区实现来支持 IANA 时区数据库。 "
42+ "在默认情况下,:mod:`zoneinfo` 会在可能的情况下使用系统的时区数据;如果系统时区数据不可用,该库将回退为使用 PyPI 上提供的 "
43+ ":pypi:`tzdata` 第一方包。"
4144
4245#: ../../library/zoneinfo.rst:26
4346msgid "Module: :mod:`datetime`"
@@ -130,6 +133,10 @@ msgid ""
130133"system data nor tzdata are available, all calls to :class:`ZoneInfo` will "
131134"raise :exc:`ZoneInfoNotFoundError`."
132135msgstr ""
136+ "``zoneinfo`` 模块不直接提供时区数据,而是在可能的情况下从系统时区数据库或使用 PyPI 上的第一方包 :pypi:`tzdata` "
137+ "来获取时区信息。 某些系统,特别是 Windows 系统也包括在内,并没有可用的 IANA "
138+ "数据库,因此对于要保证获取时区信息的跨平台兼容性的项目,推荐针对 tzdata 声明依赖。 如果系统数据和 tzdata 均不可用,则所有对 "
139+ ":class:`ZoneInfo` 的调用都将引发 :exc:`ZoneInfoNotFoundError`。"
133140
134141#: ../../library/zoneinfo.rst:106
135142msgid "Configuring the data sources"
You can’t perform that action at this time.
0 commit comments