🌐 AI搜索 & 代理 主页
Skip to content

Commit 2eee8b9

Browse files
[po] auto sync
1 parent a41a58d commit 2eee8b9

File tree

7 files changed

+93
-51
lines changed

7 files changed

+93
-51
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.73%", "updated_at": "2025-11-13T15:57:59Z"}
1+
{"translation": "99.75%", "updated_at": "2025-11-14T06:59:49Z"}

c-api/bytes.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,13 @@ msgstr ""
364364
msgid ""
365365
"Get the string representation of *bytes*. This function is currently used to"
366366
" implement :meth:`!bytes.__repr__` in Python."
367-
msgstr ""
367+
msgstr "获取 *bytes* 的字符串表示形式。 此函数目前被用于实现 Python 中的 :meth:`!bytes.__repr__`。"
368368

369369
#: ../../c-api/bytes.rst:211
370370
msgid ""
371371
"This function does not do type checking; it is undefined behavior to pass "
372372
"*bytes* as a non-bytes object or ``NULL``."
373-
msgstr ""
373+
msgstr "此函数不会进行类型检测;向 *bytes* 传入非字节对象或 ``NULL`` 是未定义的行为。"
374374

375375
#: ../../c-api/bytes.rst:214
376376
msgid ""
@@ -380,19 +380,24 @@ msgid ""
380380
"``b\"'Python'\"`` when *smartquotes* is true, or ``b'\\'Python\\''`` when it"
381381
" is false."
382382
msgstr ""
383+
"如果 *smartquotes* 为真值,表示形式将在 *bytes* 中存在单引号时使用带双引号的字符串而不是带单引号的字符串。 例如,当 "
384+
"*smartquotes* 为真值时字节串 ``'Python'`` 将被表示为 ``b\"'Python'\"``,当其为假值时则为 "
385+
"``b'\\'Python\\''``。"
383386

384387
#: ../../c-api/bytes.rst:220
385388
msgid ""
386389
"On success, this function returns a :term:`strong reference` to a "
387390
":class:`str` object containing the representation. On failure, this returns "
388391
"``NULL`` with an exception set."
389392
msgstr ""
393+
"成功时,此函数将返回一个指向包含该表示形式的 :class:`str` 对象的 :term:`strong reference`。 失败时,此函数将返回"
394+
" ``NULL`` 并设置一个异常。"
390395

391396
#: ../../c-api/bytes.rst:227
392397
msgid ""
393398
"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* "
394399
"must be the size of *s*."
395-
msgstr ""
400+
msgstr "取消带反斜杠转义的字符串 *s* 的转义。 *s* 必须不为 ``NULL``。 *len* 必须为 *s* 的长度。"
396401

397402
#: ../../c-api/bytes.rst:230
398403
msgid ""

c-api/file.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,21 @@ msgid ""
154154
":c:func:`PyFile_SetOpenCodeHook` to allow for some preprocessing of the "
155155
"text."
156156
msgstr ""
157+
"使用 ``'rb'`` 模式打开 *path*。 *path* 必须是一个 Python :class:`str` 对象。 此函数的行为可能被 "
158+
":c:func:`PyFile_SetOpenCodeHook` 重写以允许对文本进行某些预处理。"
157159

158160
#: ../../c-api/file.rst:103
159161
msgid "This is analogous to :func:`io.open_code` in Python."
160-
msgstr ""
162+
msgstr "这对应于 Python 中的 :func:`io.open_code`。"
161163

162164
#: ../../c-api/file.rst:105
163165
msgid ""
164166
"On success, this function returns a :term:`strong reference` to a Python "
165167
"file object. On failure, this function returns ``NULL`` with an exception "
166168
"set."
167169
msgstr ""
170+
"成功时,此函数将返回一个指向 Python 文件对象的 :term:`strong reference`。 失败时,此函数将返回 ``NULL`` "
171+
"并设置一个异常。with an exception set."
168172

169173
#: ../../c-api/file.rst:114
170174
msgid ""

c-api/float.po

Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
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 ""
138138
msgstr "在大多数平台上,这等价于 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
141147
msgid "High precision (long double) definition of :data:`~math.e` constant."
142148
msgstr "高精度 (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
145157
msgid "High precision (long double) definition of :data:`~math.pi` constant."
146158
msgstr "高精度 (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
149167
msgid "Return :data:`math.nan` from a function."
150168
msgstr "从一个函数返回 :data:`math.nan`。"
151169

152-
#: ../../c-api/float.rst:113
170+
#: ../../c-api/float.rst:130
153171
msgid ""
154172
"On most platforms, this is equivalent to ``return PyFloat_FromDouble(NAN)``."
155173
msgstr "在大多数平台上,这等价于 ``return PyFloat_FromDouble(NAN)``。"
156174

157-
#: ../../c-api/float.rst:118
175+
#: ../../c-api/float.rst:135
158176
msgid ""
159177
"Return :data:`math.inf` or :data:`-math.inf <math.inf>` from a function, "
160178
"depending on the sign of *sign*."
161179
msgstr ""
162180
"从一个函数返回 :data:`math.inf` 或 :data:`-math.inf <math.inf>`,具体取决于 *sign* 的符号值。"
163181

164-
#: ../../c-api/float.rst:121
182+
#: ../../c-api/float.rst:138
165183
msgid "On most platforms, this is equivalent to the following::"
166184
msgstr "在大多数平台上,这等价于以下代码::"
167185

168-
#: ../../c-api/float.rst:123
186+
#: ../../c-api/float.rst:140
169187
msgid "return PyFloat_FromDouble(copysign(INFINITY, sign));"
170188
msgstr "return PyFloat_FromDouble(copysign(INFINITY, sign));"
171189

172-
#: ../../c-api/float.rst:127
190+
#: ../../c-api/float.rst:144
173191
msgid "Pack and Unpack functions"
174192
msgstr "打包与解包函数"
175193

176-
#: ../../c-api/float.rst:129
194+
#: ../../c-api/float.rst:146
177195
msgid ""
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
188206
msgid ""
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
204222
msgid ""
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
214232
msgid "Pack functions"
215233
msgstr "打包函数"
216234

217-
#: ../../c-api/float.rst:154
235+
#: ../../c-api/float.rst:171
218236
msgid ""
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
233251
msgid ""
234252
"Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set, "
235253
"most likely :exc:`OverflowError`)."
236254
msgstr ""
237255
"返回值: 如果一切正常则为 ``0``,如果出错则为 ``-1`` (并会设置一个异常,最大可能为 :exc:`OverflowError`)。"
238256

239-
#: ../../c-api/float.rst:164
257+
#: ../../c-api/float.rst:181
240258
msgid "There are two problems on non-IEEE platforms:"
241259
msgstr "在非 IEEE 平台上存在两个问题:"
242260

243-
#: ../../c-api/float.rst:166
261+
#: ../../c-api/float.rst:183
244262
msgid "What this does is undefined if *x* is a NaN or infinity."
245263
msgstr "如果 *x* 为 NaN 或无穷大则此函数的行为是未定义的。"
246264

247-
#: ../../c-api/float.rst:167
265+
#: ../../c-api/float.rst:184
248266
msgid "``-0.0`` and ``+0.0`` produce the same bytes string."
249267
msgstr "``-0.0`` 和 ``+0.0`` 将产生相同的字节串。"
250268

251-
#: ../../c-api/float.rst:171
269+
#: ../../c-api/float.rst:188
252270
msgid "Pack a C double as the IEEE 754 binary16 half-precision format."
253271
msgstr "将 C double 打包为 IEEE 754 binary16 半精度格式。"
254272

255-
#: ../../c-api/float.rst:175
273+
#: ../../c-api/float.rst:192
256274
msgid "Pack a C double as the IEEE 754 binary32 single precision format."
257275
msgstr "将 C double 打包为 IEEE 754 binary32 单精度格式。"
258276

259-
#: ../../c-api/float.rst:179
277+
#: ../../c-api/float.rst:196
260278
msgid "Pack a C double as the IEEE 754 binary64 double precision format."
261279
msgstr "将 C double 打包为 IEEE 754 binary64 双精度格式。"
262280

263-
#: ../../c-api/float.rst:183
281+
#: ../../c-api/float.rst:200
264282
msgid "Unpack functions"
265283
msgstr "解包函数"
266284

267-
#: ../../c-api/float.rst:185
285+
#: ../../c-api/float.rst:202
268286
msgid ""
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
282300
msgid ""
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
291309
msgid ""
292310
"Note that on a non-IEEE platform this will refuse to unpack a bytes string "
293311
"that represents a NaN or infinity."
294312
msgstr "请注意在非 IEEE 平台上此函数将拒绝解包表示 NaN 或无穷大的字节串。"
295313

296-
#: ../../c-api/float.rst:201
314+
#: ../../c-api/float.rst:218
297315
msgid "Unpack the IEEE 754 binary16 half-precision format as a C double."
298316
msgstr "将 IEEE 754 binary16 半精度格式解包为 C double。"
299317

300-
#: ../../c-api/float.rst:205
318+
#: ../../c-api/float.rst:222
301319
msgid "Unpack the IEEE 754 binary32 single precision format as a C double."
302320
msgstr "将 IEEE 754 binary32 单精度格式解包为 C double。"
303321

304-
#: ../../c-api/float.rst:209
322+
#: ../../c-api/float.rst:226
305323
msgid "Unpack the IEEE 754 binary64 double precision format as a C double."
306324
msgstr "将 IEEE 754 binary64 双精度格式解包为 C double。"
307325

c-api/type.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,21 @@ msgid ""
164164
"Mark *type* as not watched. This undoes a previous call to "
165165
":c:func:`PyType_Watch`. *type* must not be ``NULL``."
166166
msgstr ""
167+
"将 *type* 标记为未被监视。 这将撤销之前对 :c:func:`PyType_Watch` 调用的效果。 *type* 必须不为 "
168+
"``NULL``。"
167169

168170
#: ../../c-api/type.rst:124
169171
msgid ""
170172
"An extension should never call this function with a *watcher_id* that was "
171173
"not returned to it by a previous call to :c:func:`PyType_AddWatcher`."
172174
msgstr ""
175+
"扩展在调用此函数时传入的 *watcher_id* 绝不能不是之前调用 :c:func:`PyType_AddWatcher` 所返回的值。"
173176

174177
#: ../../c-api/type.rst:127
175178
msgid ""
176179
"On success, this function returns ``0``. On failure, this function returns "
177180
"``-1`` with an exception set."
178-
msgstr ""
181+
msgstr "成功时,此函数将返回 ``0``。 失败时,此函数将返回 ``-1`` 并设置一个异常。"
179182

180183
#: ../../c-api/type.rst:135
181184
msgid "Type of a type-watcher callback function."
@@ -203,12 +206,15 @@ msgid ""
203206
"<Py_TPFLAGS_LONG_SUBCLASS>`. This function is used by many ``_Check`` "
204207
"functions for common types."
205208
msgstr ""
209+
"如果类型对象 *type* 设置了子类旗标 *flag* 则返回非零值。 子类旗标是由 :c:macro:`Py_TPFLAGS_*_SUBCLASS "
210+
"<Py_TPFLAGS_LONG_SUBCLASS>` 表示的。 此函数将被许多针对常见类型的 ``_Check`` 函数所使用。"
206211

207212
#: ../../c-api/type.rst:158
208213
msgid ""
209214
":c:func:`PyObject_TypeCheck`, which is used as a slower alternative in "
210215
"``_Check`` functions for types that don't come with subclass flags."
211216
msgstr ""
217+
":c:func:`PyObject_TypeCheck`���该函数被用作针对不带子类旗标的类型的 ``_Check`` 函数的较慢速的替代物。"
212218

213219
#: ../../c-api/type.rst:164
214220
msgid ""

c-api/veryhigh.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ msgid ""
197197
":c:expr:`const char*`, which is decoded from the :term:`filesystem encoding "
198198
"and error handler`."
199199
msgstr ""
200+
"类似于 :c:func:`PyRun_InteractiveOneObject`,但 *filename* 是一个 :c:expr:`const "
201+
"char*`,它使用 :term:`filesystem encoding and error handler` 来解码。"
200202

201203
#: ../../c-api/veryhigh.rst:132
202204
msgid ""

0 commit comments

Comments
 (0)