@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version :Python 3.13\n "
1414"Report-Msgid-Bugs-To :\n "
15- "POT-Creation-Date :2025-11-11 15:06 +0000\n "
15+ "POT-Creation-Date :2025-11-13 15:03 +0000\n "
1616"PO-Revision-Date :2025-09-15 01:03+0000\n "
1717"Last-Translator :Freesand Leo <yuqinju@163.com>, 2025\n "
1818"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -138,42 +138,60 @@ msgid ""
138138msgstr "在大多数平台上,这等价于 C11 标准 ``<math.h>`` 头文件中的 :c:macro:`!NAN` 宏。"
139139
140140#: ../../c-api/float.rst:101
141+ msgid ""
142+ "The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` "
143+ "constant."
144+ msgstr ":data:`math.e` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
145+
146+ #: ../../c-api/float.rst:106
141147msgid "High precision (long double) definition of :data:`~math.e` constant."
142148msgstr "高精度 (long double) 的 :data:`~math.e` 常量定义。"
143149
144- #: ../../c-api/float.rst:106
150+ #: ../../c-api/float.rst:111
151+ msgid ""
152+ "The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi`"
153+ " constant."
154+ msgstr ":data:`math.pi` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
155+
156+ #: ../../c-api/float.rst:116
145157msgid "High precision (long double) definition of :data:`~math.pi` constant."
146158msgstr "高精度 (long double) 的 :data:`~math.pi` 常量定义。"
147159
148- #: ../../c-api/float.rst:111
160+ #: ../../c-api/float.rst:121
161+ msgid ""
162+ "The definition (accurate for a :c:expr:`double` type) of the "
163+ ":data:`math.tau` constant."
164+ msgstr ":data:`math.tau` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
165+
166+ #: ../../c-api/float.rst:128
149167msgid "Return :data:`math.nan` from a function."
150168msgstr "从一个函数返回 :data:`math.nan`。"
151169
152- #: ../../c-api/float.rst:113
170+ #: ../../c-api/float.rst:130
153171msgid ""
154172"On most platforms, this is equivalent to ``return PyFloat_FromDouble(NAN)``."
155173msgstr "在大多数平台上,这等价于 ``return PyFloat_FromDouble(NAN)``。"
156174
157- #: ../../c-api/float.rst:118
175+ #: ../../c-api/float.rst:135
158176msgid ""
159177"Return :data:`math.inf` or :data:`-math.inf <math.inf>` from a function, "
160178"depending on the sign of *sign*."
161179msgstr ""
162180"从一个函数返回 :data:`math.inf` 或 :data:`-math.inf <math.inf>`,具体取决于 *sign* 的符号值。"
163181
164- #: ../../c-api/float.rst:121
182+ #: ../../c-api/float.rst:138
165183msgid "On most platforms, this is equivalent to the following::"
166184msgstr "在大多数平台上,这等价于以下代码::"
167185
168- #: ../../c-api/float.rst:123
186+ #: ../../c-api/float.rst:140
169187msgid "return PyFloat_FromDouble(copysign(INFINITY, sign));"
170188msgstr "return PyFloat_FromDouble(copysign(INFINITY, sign));"
171189
172- #: ../../c-api/float.rst:127
190+ #: ../../c-api/float.rst:144
173191msgid "Pack and Unpack functions"
174192msgstr "打包与解包函数"
175193
176- #: ../../c-api/float.rst:129
194+ #: ../../c-api/float.rst:146
177195msgid ""
178196"The pack and unpack functions provide an efficient platform-independent way "
179197"to store floating-point values as byte strings. The Pack routines produce a "
@@ -184,7 +202,7 @@ msgstr ""
184202"打包与解包函数提供了独立于平台的高效方式来将浮点数值存储为字节串。 Pack 例程根据 C :c:expr:`double` 产生字节串,而 "
185203"Unpack 例程根据这样的字节串产生 C :c:expr:`double`。 后缀 (2, 4 or 8) 指明字节串中的字节数。"
186204
187- #: ../../c-api/float.rst:135
205+ #: ../../c-api/float.rst:152
188206msgid ""
189207"On platforms that appear to use IEEE 754 formats these functions work by "
190208"copying bits. On other platforms, the 2-byte format is identical to the IEEE"
@@ -200,7 +218,7 @@ msgstr ""
200218"双精度格式相同,不过 INF 和 NaN (如果平台存在这两种值) 未得到正确处理,而试图对包含 IEEE INF 或 NaN "
201219"的字节串执行解包将会引发一个异常。"
202220
203- #: ../../c-api/float.rst:144
221+ #: ../../c-api/float.rst:161
204222msgid ""
205223"On non-IEEE platforms with more precision, or larger dynamic range, than "
206224"IEEE 754 supports, not all values can be packed; on non-IEEE platforms with "
@@ -210,11 +228,11 @@ msgstr ""
210228"在具有比 IEEE 754 所支持的更高精度,或更大动态范围的非 IEEE 平台上,不是所有的值都能被打包;在具有更低精度,或更小动态范围的非 IEEE"
211229" 平台上,则不是所有的值都能被解包。 在这种情况下发生的事情有一部分将是偶然的(无奈)。"
212230
213- #: ../../c-api/float.rst:152
231+ #: ../../c-api/float.rst:169
214232msgid "Pack functions"
215233msgstr "打包函数"
216234
217- #: ../../c-api/float.rst:154
235+ #: ../../c-api/float.rst:171
218236msgid ""
219237"The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an "
220238":c:expr:`int` argument, non-zero if you want the bytes string in little-"
@@ -229,42 +247,42 @@ msgstr ""
229247"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
230248"``1``,在小端序处理器上则等于 ``0``。"
231249
232- #: ../../c-api/float.rst:161
250+ #: ../../c-api/float.rst:178
233251msgid ""
234252"Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set, "
235253"most likely :exc:`OverflowError`)."
236254msgstr ""
237255"返回值: 如果一切正常则为 ``0``,如果出错则为 ``-1`` (并会设置一个异常,最大可能为 :exc:`OverflowError`)。"
238256
239- #: ../../c-api/float.rst:164
257+ #: ../../c-api/float.rst:181
240258msgid "There are two problems on non-IEEE platforms:"
241259msgstr "在非 IEEE 平台上存在两个问题:"
242260
243- #: ../../c-api/float.rst:166
261+ #: ../../c-api/float.rst:183
244262msgid "What this does is undefined if *x* is a NaN or infinity."
245263msgstr "如果 *x* 为 NaN 或无穷大则此函数的行为是未定义的。"
246264
247- #: ../../c-api/float.rst:167
265+ #: ../../c-api/float.rst:184
248266msgid "``-0.0`` and ``+0.0`` produce the same bytes string."
249267msgstr "``-0.0`` 和 ``+0.0`` 将产生相同的字节串。"
250268
251- #: ../../c-api/float.rst:171
269+ #: ../../c-api/float.rst:188
252270msgid "Pack a C double as the IEEE 754 binary16 half-precision format."
253271msgstr "将 C double 打包为 IEEE 754 binary16 半精度格式。"
254272
255- #: ../../c-api/float.rst:175
273+ #: ../../c-api/float.rst:192
256274msgid "Pack a C double as the IEEE 754 binary32 single precision format."
257275msgstr "将 C double 打包为 IEEE 754 binary32 单精度格式。"
258276
259- #: ../../c-api/float.rst:179
277+ #: ../../c-api/float.rst:196
260278msgid "Pack a C double as the IEEE 754 binary64 double precision format."
261279msgstr "将 C double 打包为 IEEE 754 binary64 双精度格式。"
262280
263- #: ../../c-api/float.rst:183
281+ #: ../../c-api/float.rst:200
264282msgid "Unpack functions"
265283msgstr "解包函数"
266284
267- #: ../../c-api/float.rst:185
285+ #: ../../c-api/float.rst:202
268286msgid ""
269287"The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an "
270288":c:expr:`int` argument, non-zero if the bytes string is in little-endian "
@@ -278,7 +296,7 @@ msgstr ""
278296"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
279297"``1``,在小端序处理器上则等于 ``0``。"
280298
281- #: ../../c-api/float.rst:192
299+ #: ../../c-api/float.rst:209
282300msgid ""
283301"Return value: The unpacked double. On error, this is ``-1.0`` and "
284302":c:func:`PyErr_Occurred` is true (and an exception is set, most likely "
@@ -287,21 +305,21 @@ msgstr ""
287305"返回值: 解包后的 double。 出错时,返回值为 ``-1.0`` 且 :c:func:`PyErr_Occurred` 为真值 "
288306"(并且会设置一个异常,最大可能为 :exc:`OverflowError`)。"
289307
290- #: ../../c-api/float.rst:196
308+ #: ../../c-api/float.rst:213
291309msgid ""
292310"Note that on a non-IEEE platform this will refuse to unpack a bytes string "
293311"that represents a NaN or infinity."
294312msgstr "请注意在非 IEEE 平台上此函数将拒绝解包表示 NaN 或无穷大的字节串。"
295313
296- #: ../../c-api/float.rst:201
314+ #: ../../c-api/float.rst:218
297315msgid "Unpack the IEEE 754 binary16 half-precision format as a C double."
298316msgstr "将 IEEE 754 binary16 半精度格式解包为 C double。"
299317
300- #: ../../c-api/float.rst:205
318+ #: ../../c-api/float.rst:222
301319msgid "Unpack the IEEE 754 binary32 single precision format as a C double."
302320msgstr "将 IEEE 754 binary32 单精度格式解包为 C double。"
303321
304- #: ../../c-api/float.rst:209
322+ #: ../../c-api/float.rst:226
305323msgid "Unpack the IEEE 754 binary64 double precision format as a C double."
306324msgstr "将 IEEE 754 binary64 双精度格式解包为 C double。"
307325