Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit762a2c9

Browse files
[po] auto sync
1 parentfc032a4 commit762a2c9

File tree

4 files changed

+106
-51
lines changed

4 files changed

+106
-51
lines changed

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"99.76%","updated_at":"2025-11-19T20:57:11Z"}
1+
{"translation":"99.79%","updated_at":"2025-11-20T02:26:30Z"}

‎c-api/dict.po‎

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Freesand Leo <yuqinju@163.com>, 2025
87
# python-doc bot, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2025
99
#
1010
#,fuzzy
1111
msgid ""
1212
msgstr ""
1313
"Project-Id-Version:Python 3.13\n"
1414
"Report-Msgid-Bugs-To:\n"
15-
"POT-Creation-Date:2025-11-1915:26+0000\n"
15+
"POT-Creation-Date:2025-11-1920:20+0000\n"
1616
"PO-Revision-Date:2025-09-15 01:03+0000\n"
17-
"Last-Translator:python-doc bot, 2025\n"
17+
"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"
1919
"MIME-Version:1.0\n"
2020
"Content-Type:text/plain; charset=UTF-8\n"
@@ -648,86 +648,93 @@ msgstr "如果 *op* 是一个字典条目视图的实例则返回真值。 此
648648

649649
#:../../c-api/dict.rst:474
650650
msgid"Ordered Dictionaries"
651-
msgstr""
651+
msgstr"有序字典"
652652

653653
#:../../c-api/dict.rst:476
654654
msgid""
655655
"Python's C API provides interface for :class:`collections.OrderedDict` from "
656656
"C. Since Python 3.7, dictionaries are ordered by default, so there is "
657657
"usually little need for these functions; prefer ``PyDict*`` where possible."
658658
msgstr""
659+
"Python 的 C API 提供了针对来自 C 的 :class:`collections.OrderedDict` 的接口。 从 Python "
660+
"3.7 开始,字典默认就是有序的,因此通常不需要使用这些函数;只要有可能就建议使用 ``PyDict*``。"
659661

660662
#:../../c-api/dict.rst:483
661663
msgid""
662664
"Type object for ordered dictionaries. This is the same object as "
663665
":class:`collections.OrderedDict` in the Python layer."
664-
msgstr""
666+
msgstr"有序字典的类型对象。 它与 Python 层面的 :class:`collections.OrderedDict` 是相同的元旦。"
665667

666668
#:../../c-api/dict.rst:489
667669
msgid""
668670
"Return true if *od* is an ordered dictionary object or an instance of a "
669671
"subtype of the :class:`~collections.OrderedDict` type. This function always"
670672
" succeeds."
671673
msgstr""
674+
"Return true 如果 *od* 是一个有序字典对象或 :class:`~collections.OrderedDict` "
675+
"类型的子类型的实例则返回真值。 此函数总是会成功执行。"
672676

673677
#:../../c-api/dict.rst:496
674678
msgid""
675679
"Return true if *od* is an ordered dictionary object, but not an instance of "
676680
"a subtype of the :class:`~collections.OrderedDict` type. This function "
677681
"always succeeds."
678682
msgstr""
683+
"如果 *od* 是一个有序字典对象,但不是 :class:`~collections.OrderedDict` 类型的子类型的实例则返回真值。 "
684+
"此函数总是会成功执行。"
679685

680686
#:../../c-api/dict.rst:503
681687
msgid"Analogous to :c:type:`PyDictKeys_Type` for ordered dictionaries."
682-
msgstr""
688+
msgstr"等同于对应有序字典的 :c:type:`PyDictKeys_Type`。"
683689

684690
#:../../c-api/dict.rst:508
685691
msgid"Analogous to :c:type:`PyDictValues_Type` for ordered dictionaries."
686-
msgstr""
692+
msgstr"等同于针对有序字典的 :c:type:`PyDictValues_Type`。"
687693

688694
#:../../c-api/dict.rst:513
689695
msgid"Analogous to :c:type:`PyDictItems_Type` for ordered dictionaries."
690-
msgstr""
696+
msgstr"等同于针对有序字典的 :c:type:`PyDictItems_Type`。"
691697

692698
#:../../c-api/dict.rst:518
693699
msgid"Return a new empty ordered dictionary, or ``NULL`` on failure."
694-
msgstr""
700+
msgstr"返回一个新的空有序字典,或在失败时返回 ``NULL``。"
695701

696702
#:../../c-api/dict.rst:520
697703
msgid"This is analogous to :c:func:`PyDict_New`."
698-
msgstr""
704+
msgstr"这等同于 :c:func:`PyDict_New`。"
699705

700706
#:../../c-api/dict.rst:525
701707
msgid""
702708
"Insert *value* into the ordered dictionary *od* with a key of *key*. Return "
703709
"``0`` on success or ``-1`` with an exception set on failure."
704710
msgstr""
711+
"将 *value* 插入到有序字典 *od* 并将键设为 *key*。 成功时返回 ``0`` 或在失败时返回 ``-1`` 并设置一个异常。"
705712

706713
#:../../c-api/dict.rst:528
707714
msgid"This is analogous to :c:func:`PyDict_SetItem`."
708-
msgstr""
715+
msgstr"这等同于 :c:func:`PyDict_SetItem`。"
709716

710717
#:../../c-api/dict.rst:533
711718
msgid""
712719
"Remove the entry in the ordered dictionary *od* with key *key*. Return ``0``"
713720
" on success or ``-1`` with an exception set on failure."
714-
msgstr""
721+
msgstr"移除有序字典中 *od* 键为 *key* 的条目。 成功时返回 ``0`` 或在失败时返回 ``-1`` 并设置一个异常。"
715722

716723
#:../../c-api/dict.rst:536
717724
msgid"This is analogous to :c:func:`PyDict_DelItem`."
718-
msgstr""
725+
msgstr"这等同于 :c:func:`PyDict_DelItem`。"
719726

720727
#:../../c-api/dict.rst:539
721728
msgid"These are :term:`soft deprecated` aliases to ``PyDict`` APIs:"
722-
msgstr""
729+
msgstr"这些是已被设为 :term:`soft deprecated` 状态的 ``PyDict`` API 的别名:"
723730

724731
#:../../c-api/dict.rst:546
725732
msgid"``PyODict``"
726-
msgstr""
733+
msgstr"``PyODict``"
727734

728735
#:../../c-api/dict.rst:547
729736
msgid"``PyDict``"
730-
msgstr""
737+
msgstr"``PyDict``"
731738

732739
#:../../c-api/dict.rst:549
733740
msgid":c:func:`PyDict_GetItem`"
@@ -743,15 +750,15 @@ msgstr ":c:func:`PyDict_GetItemString`"
743750

744751
#:../../c-api/dict.rst:555
745752
msgid":c:func:`PyDict_Contains`"
746-
msgstr""
753+
msgstr":c:func:`PyDict_Contains`"
747754

748755
#:../../c-api/dict.rst:557
749756
msgid":c:func:`PyDict_Size`"
750-
msgstr""
757+
msgstr":c:func:`PyDict_Size`"
751758

752759
#:../../c-api/dict.rst:559
753760
msgid":c:func:`PyDict_GET_SIZE`"
754-
msgstr""
761+
msgstr":c:func:`PyDict_GET_SIZE`"
755762

756763
#:../../c-api/dict.rst:8
757764
msgid"object"

‎c-api/float.po‎

Lines changed: 70 additions & 30 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-13 15:03+0000\n"
15+
"POT-Creation-Date:2025-11-19 20:20+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,60 +138,100 @@ msgid ""
138138
msgstr"在大多数平台上,这等价于 C11 标准 ``<math.h>`` 头文件中的 :c:macro:`!NAN` 宏。"
139139

140140
#:../../c-api/float.rst:101
141+
msgid"Equivalent to :c:macro:`!INFINITY`."
142+
msgstr"等价于 :c:macro:`!INFINITY`。"
143+
144+
#:../../c-api/float.rst:103
145+
msgid"The macro is :term:`soft deprecated`."
146+
msgstr"此函数已处于 :term:`soft deprecated` 状态。"
147+
148+
#:../../c-api/float.rst:109
141149
msgid""
142150
"The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` "
143151
"constant."
144152
msgstr":data:`math.e` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
145153

146-
#:../../c-api/float.rst:106
154+
#:../../c-api/float.rst:114
147155
msgid"High precision (long double) definition of :data:`~math.e` constant."
148156
msgstr"高精度 (long double) 的 :data:`~math.e` 常量定义。"
149157

150-
#:../../c-api/float.rst:111
158+
#:../../c-api/float.rst:119
151159
msgid""
152160
"The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi`"
153161
" constant."
154162
msgstr":data:`math.pi` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
155163

156-
#:../../c-api/float.rst:116
164+
#:../../c-api/float.rst:124
157165
msgid"High precision (long double) definition of :data:`~math.pi` constant."
158166
msgstr"高精度 (long double) 的 :data:`~math.pi` 常量定义。"
159167

160-
#:../../c-api/float.rst:121
168+
#:../../c-api/float.rst:129
161169
msgid""
162170
"The definition (accurate for a :c:expr:`double` type) of the "
163171
":data:`math.tau` constant."
164172
msgstr":data:`math.tau` 常量的定义(基于 :c:expr:`double` 类型的精度)。"
165173

166-
#:../../c-api/float.rst:128
174+
#:../../c-api/float.rst:136
167175
msgid"Return :data:`math.nan` from a function."
168176
msgstr"从一个函数返回 :data:`math.nan`。"
169177

170-
#:../../c-api/float.rst:130
178+
#:../../c-api/float.rst:138
171179
msgid""
172180
"On most platforms, this is equivalent to ``return PyFloat_FromDouble(NAN)``."
173181
msgstr"在大多数平台上,这等价于 ``return PyFloat_FromDouble(NAN)``。"
174182

175-
#:../../c-api/float.rst:135
183+
#:../../c-api/float.rst:143
176184
msgid""
177185
"Return :data:`math.inf` or :data:`-math.inf <math.inf>` from a function, "
178186
"depending on the sign of *sign*."
179187
msgstr""
180188
"从一个函数返回 :data:`math.inf` 或 :data:`-math.inf <math.inf>`,具体取决于 *sign* 的符号值。"
181189

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

186-
#:../../c-api/float.rst:140
194+
#:../../c-api/float.rst:148
187195
msgid"return PyFloat_FromDouble(copysign(INFINITY, sign));"
188196
msgstr"return PyFloat_FromDouble(copysign(INFINITY, sign));"
189197

190-
#:../../c-api/float.rst:144
198+
#:../../c-api/float.rst:153
199+
msgid""
200+
"Return ``1`` if the given floating-point number *X* is finite, that is, it "
201+
"is normal, subnormal or zero, but not infinite or NaN. Return ``0`` "
202+
"otherwise."
203+
msgstr""
204+
205+
#:../../c-api/float.rst:157
206+
msgid""
207+
"The macro is :term:`soft deprecated`. Use :c:macro:`!isfinite` instead."
208+
msgstr""
209+
210+
#:../../c-api/float.rst:163
211+
msgid""
212+
"Return ``1`` if the given floating-point number *X* is positive or negative "
213+
"infinity. Return ``0`` otherwise."
214+
msgstr""
215+
216+
#:../../c-api/float.rst:166
217+
msgid"The macro is :term:`soft deprecated`. Use :c:macro:`!isinf` instead."
218+
msgstr""
219+
220+
#:../../c-api/float.rst:172
221+
msgid""
222+
"Return ``1`` if the given floating-point number *X* is a not-a-number (NaN) "
223+
"value. Return ``0`` otherwise."
224+
msgstr""
225+
226+
#:../../c-api/float.rst:175
227+
msgid"The macro is :term:`soft deprecated`. Use :c:macro:`!isnan` instead."
228+
msgstr"该宏已处于 :term:`soft deprecated` 状态。 请改用 :c:macro:`!isnan`。"
229+
230+
#:../../c-api/float.rst:180
191231
msgid"Pack and Unpack functions"
192232
msgstr"打包与解包函数"
193233

194-
#:../../c-api/float.rst:146
234+
#:../../c-api/float.rst:182
195235
msgid""
196236
"The pack and unpack functions provide an efficient platform-independent way "
197237
"to store floating-point values as byte strings. The Pack routines produce a "
@@ -202,7 +242,7 @@ msgstr ""
202242
"打包与解包函数提供了独立于平台的高效方式来将浮点数值存储为字节串。 Pack 例程根据 C :c:expr:`double` 产生字节串,而 "
203243
"Unpack 例程根据这样的字节串产生 C :c:expr:`double`。 后缀 (2, 4 or 8) 指明字节串中的字节数。"
204244

205-
#:../../c-api/float.rst:152
245+
#:../../c-api/float.rst:188
206246
msgid""
207247
"On platforms that appear to use IEEE 754 formats these functions work by "
208248
"copying bits. On other platforms, the 2-byte format is identical to the IEEE"
@@ -218,7 +258,7 @@ msgstr ""
218258
"双精度格式相同,不过 INF 和 NaN (如果平台存在这两种值) 未得到正确处理,而试图对包含 IEEE INF 或 NaN "
219259
"的字节串执行解包将会引发一个异常。"
220260

221-
#:../../c-api/float.rst:161
261+
#:../../c-api/float.rst:197
222262
msgid""
223263
"On non-IEEE platforms with more precision, or larger dynamic range, than "
224264
"IEEE 754 supports, not all values can be packed; on non-IEEE platforms with "
@@ -228,11 +268,11 @@ msgstr ""
228268
"在具有比 IEEE 754 所支持的更高精度,或更大动态范围的非 IEEE 平台上,不是所有的值都能被打包;在具有更低精度,或更小动态范围的非 IEEE"
229269
" 平台上,则不是所有的值都能被解包。 在这种情况下发生的事情有一部分将是偶然的(无奈)。"
230270

231-
#:../../c-api/float.rst:169
271+
#:../../c-api/float.rst:205
232272
msgid"Pack functions"
233273
msgstr"打包函数"
234274

235-
#:../../c-api/float.rst:171
275+
#:../../c-api/float.rst:207
236276
msgid""
237277
"The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an "
238278
":c:expr:`int` argument, non-zero if you want the bytes string in little-"
@@ -247,42 +287,42 @@ msgstr ""
247287
"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
248288
"``1``,在小端序处理器上则等于 ``0``。"
249289

250-
#:../../c-api/float.rst:178
290+
#:../../c-api/float.rst:214
251291
msgid""
252292
"Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set, "
253293
"most likely :exc:`OverflowError`)."
254294
msgstr""
255295
"返回值: 如果一切正常则为 ``0``,如果出错则为 ``-1`` (并会设置一个异常,最大可能为 :exc:`OverflowError`)。"
256296

257-
#:../../c-api/float.rst:181
297+
#:../../c-api/float.rst:217
258298
msgid"There are two problems on non-IEEE platforms:"
259299
msgstr"在非 IEEE 平台上存在两个问题:"
260300

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

265-
#:../../c-api/float.rst:184
305+
#:../../c-api/float.rst:220
266306
msgid"``-0.0`` and ``+0.0`` produce the same bytes string."
267307
msgstr"``-0.0`` 和 ``+0.0`` 将产生相同的字节串。"
268308

269-
#:../../c-api/float.rst:188
309+
#:../../c-api/float.rst:224
270310
msgid"Pack a C double as the IEEE 754 binary16 half-precision format."
271311
msgstr"将 C double 打包为 IEEE 754 binary16 半精度格式。"
272312

273-
#:../../c-api/float.rst:192
313+
#:../../c-api/float.rst:228
274314
msgid"Pack a C double as the IEEE 754 binary32 single precision format."
275315
msgstr"将 C double 打包为 IEEE 754 binary32 单精度格式。"
276316

277-
#:../../c-api/float.rst:196
317+
#:../../c-api/float.rst:232
278318
msgid"Pack a C double as the IEEE 754 binary64 double precision format."
279319
msgstr"将 C double 打包为 IEEE 754 binary64 双精度格式。"
280320

281-
#:../../c-api/float.rst:200
321+
#:../../c-api/float.rst:236
282322
msgid"Unpack functions"
283323
msgstr"解包函数"
284324

285-
#:../../c-api/float.rst:202
325+
#:../../c-api/float.rst:238
286326
msgid""
287327
"The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an "
288328
":c:expr:`int` argument, non-zero if the bytes string is in little-endian "
@@ -296,7 +336,7 @@ msgstr ""
296336
"(指数部分放在前面,位于 *p*) 则其应为零。 :c:macro:`PY_BIG_ENDIAN` 常量可被用于使用本机端序:在大端序处理器上等于 "
297337
"``1``,在小端序处理器上则等于 ``0``。"
298338

299-
#:../../c-api/float.rst:209
339+
#:../../c-api/float.rst:245
300340
msgid""
301341
"Return value: The unpacked double. On error, this is ``-1.0`` and "
302342
":c:func:`PyErr_Occurred` is true (and an exception is set, most likely "
@@ -305,21 +345,21 @@ msgstr ""
305345
"返回值: 解包后的 double。 出错时,返回值为 ``-1.0`` 且 :c:func:`PyErr_Occurred` 为真值 "
306346
"(并且会设置一个异常,最大可能为 :exc:`OverflowError`)。"
307347

308-
#:../../c-api/float.rst:213
348+
#:../../c-api/float.rst:249
309349
msgid""
310350
"Note that on a non-IEEE platform this will refuse to unpack a bytes string "
311351
"that represents a NaN or infinity."
312352
msgstr"请注意在非 IEEE 平台上此函数将拒绝解包表示 NaN 或无穷大的字节串。"
313353

314-
#:../../c-api/float.rst:218
354+
#:../../c-api/float.rst:254
315355
msgid"Unpack the IEEE 754 binary16 half-precision format as a C double."
316356
msgstr"将 IEEE 754 binary16 半精度格式解包为 C double。"
317357

318-
#:../../c-api/float.rst:222
358+
#:../../c-api/float.rst:258
319359
msgid"Unpack the IEEE 754 binary32 single precision format as a C double."
320360
msgstr"将 IEEE 754 binary32 单精度格式解包为 C double。"
321361

322-
#:../../c-api/float.rst:226
362+
#:../../c-api/float.rst:262
323363
msgid"Unpack the IEEE 754 binary64 double precision format as a C double."
324364
msgstr"将 IEEE 754 binary64 双精度格式解包为 C double。"
325365

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp