Skip to content

Commit d9a60d0

Browse files
[po] auto sync
1 parent 0afba5c commit d9a60d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1077
-718
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "94.86%", "updated_at": "2024-07-26T15:47:08Z"}
1+
{"translation": "95.45%", "updated_at": "2024-07-26T18:47:01Z"}

c-api/arg.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -623,15 +623,15 @@ msgstr "``f`` (:class:`float`) [float]"
623623

624624
#: ../../c-api/arg.rst:283
625625
msgid "Convert a Python floating-point number to a C :c:expr:`float`."
626-
msgstr ""
626+
msgstr "将Python浮点数转换成C的:c:expr:`float`"
627627

628628
#: ../../c-api/arg.rst:285 ../../c-api/arg.rst:609
629629
msgid "``d`` (:class:`float`) [double]"
630630
msgstr "``d`` (:class:`float`) [double]"
631631

632632
#: ../../c-api/arg.rst:286
633633
msgid "Convert a Python floating-point number to a C :c:expr:`double`."
634-
msgstr ""
634+
msgstr "将Python浮点数转换成C的:c:expr:`double`"
635635

636636
#: ../../c-api/arg.rst:288
637637
msgid "``D`` (:class:`complex`) [Py_complex]"
@@ -1167,11 +1167,11 @@ msgstr "将一个代表单个字符的 C :c:expr:`int` 转换为长度为 1 的
11671167

11681168
#: ../../c-api/arg.rst:610
11691169
msgid "Convert a C :c:expr:`double` to a Python floating-point number."
1170-
msgstr ""
1170+
msgstr "将 C :c:expr:`double` 转换成 Python 浮点数"
11711171

11721172
#: ../../c-api/arg.rst:613
11731173
msgid "Convert a C :c:expr:`float` to a Python floating-point number."
1174-
msgstr ""
1174+
msgstr "将 C :c:expr:`float` 转换成 Python 浮点数"
11751175

11761176
#: ../../c-api/arg.rst:615
11771177
msgid "``D`` (:class:`complex`) [Py_complex \\*]"

c-api/complex.po

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -52,11 +52,11 @@ msgid ""
5252
"number object. Most of the functions for dealing with complex number "
5353
"objects use structures of this type as input or output values, as "
5454
"appropriate."
55-
msgstr ""
55+
msgstr "对应于 Python 复数对象的值部分的 C 结构体。 大部分用于处理数据对象的函数都使用该类型的结构体作为相应的输入或输出值。"
5656

5757
#: ../../c-api/complex.rst:33
5858
msgid "The structure is defined as::"
59-
msgstr ""
59+
msgstr "其结构定义如下:"
6060

6161
#: ../../c-api/complex.rst:43
6262
msgid ""
@@ -146,12 +146,15 @@ msgid ""
146146
"Create a new Python complex number object from a C :c:type:`Py_complex` "
147147
"value. Return ``NULL`` with an exception set on error."
148148
msgstr ""
149+
"根据一个 C :c:type:`Py_complex` 值新建 Python 复数对象。 当发生错误时将返回 ``NULL`` 并设置一个异常。"
149150

150151
#: ../../c-api/complex.rst:118
151152
msgid ""
152153
"Return a new :c:type:`PyComplexObject` object from *real* and *imag*. Return"
153154
" ``NULL`` with an exception set on error."
154155
msgstr ""
156+
"根据 *real* 和 *imag* 返回一个新的 :c:type:`PyComplexObject` 对象。 当发生错误时将返回 ``NULL`` "
157+
"并设置一个异常。"
155158

156159
#: ../../c-api/complex.rst:124
157160
msgid "Return the real part of *op* as a C :c:expr:`double`."
@@ -162,6 +165,7 @@ msgid ""
162165
"Upon failure, this method returns ``-1.0`` with an exception set, so one "
163166
"should call :c:func:`PyErr_Occurred` to check for errors."
164167
msgstr ""
168+
"当失败时,此方法将返回 ``-1.0`` 并设置一个异常,因此开发者应当调用 :c:func:`PyErr_Occurred` 来检查错误。"
165169

166170
#: ../../c-api/complex.rst:132
167171
msgid "Return the imaginary part of *op* as a C :c:expr:`double`."
@@ -180,13 +184,18 @@ msgid ""
180184
":meth:`!__float__` is not defined then it falls back to "
181185
":meth:`~object.__index__`."
182186
msgstr ""
187+
"如果 *op* 不是一个 Python 复数对象但是具有 :meth:`~object.__complex__` 方法,则会先调用该方法将 *op* "
188+
"转换为 Python 复数对象。 如果未定义 :meth:`!__complex__` 则将回退至 :meth:`~object.__float__`。"
189+
" 如果未定义 :meth:`!__float__` 则将回退至 :meth:`~object.__index__`。"
183190

184191
#: ../../c-api/complex.rst:145
185192
msgid ""
186193
"Upon failure, this method returns :c:type:`Py_complex` with "
187194
":c:member:`~Py_complex.real` set to ``-1.0`` and with an exception set, so "
188195
"one should call :c:func:`PyErr_Occurred` to check for errors."
189196
msgstr ""
197+
"当失败时,此方法将返回 :c:type:`Py_complex` 其中 :c:member:`~Py_complex.real` 为 ``-1.0`` "
198+
"并设置一个异常,因此开发者应当调用 :c:func:`PyErr_Occurred` 来检查错误。"
190199

191200
#: ../../c-api/complex.rst:149
192201
msgid "Use :meth:`~object.__index__` if available."

c-api/float.po

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -23,19 +23,21 @@ msgstr ""
2323

2424
#: ../../c-api/float.rst:6
2525
msgid "Floating-Point Objects"
26-
msgstr ""
26+
msgstr "浮点数对象"
2727

2828
#: ../../c-api/float.rst:13
2929
msgid ""
3030
"This subtype of :c:type:`PyObject` represents a Python floating-point "
3131
"object."
32-
msgstr ""
32+
msgstr "这个 :c:type:`PyObject` 的子类型代表一个 Python 浮点数对象。"
3333

3434
#: ../../c-api/float.rst:18
3535
msgid ""
3636
"This instance of :c:type:`PyTypeObject` represents the Python floating-point"
3737
" type. This is the same object as :class:`float` in the Python layer."
3838
msgstr ""
39+
"这个 :c:type:`PyTypeObject` 实例代表 Python 浮点数类型。 这与 Python 层面的 :class:`float` "
40+
"是同一个对象。"
3941

4042
#: ../../c-api/float.rst:24
4143
msgid ""
@@ -73,6 +75,10 @@ msgid ""
7375
" falls back to :meth:`~object.__index__`. This method returns ``-1.0`` upon "
7476
"failure, so one should call :c:func:`PyErr_Occurred` to check for errors."
7577
msgstr ""
78+
"返回 *pyfloat* 的内容的 C :c:expr:`double` 表示形式。 如果 *pyfloat* 不是一个 Python "
79+
"浮点数对象但是具有 :meth:`~object.__float__` 方法,则会先调用此方法来将 *pyfloat* 转换为浮点数。 如果 "
80+
":meth:`!__float__` 未定义则将回退至 :meth:`~object.__index__`。 此方法在失败时将返回 "
81+
"``-1.0``,因此开发者应当调用 :c:func:`PyErr_Occurred` 来检测错误。"
7682

7783
#: ../../c-api/float.rst:54
7884
msgid "Use :meth:`~object.__index__` if available."
@@ -247,4 +253,4 @@ msgstr "object -- 对象"
247253

248254
#: ../../c-api/float.rst:8
249255
msgid "floating-point"
250-
msgstr ""
256+
msgstr "浮点数"

c-api/marshal.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -47,6 +47,8 @@ msgid ""
4747
"unmarshalling. Version 2 uses a binary format for floating-point numbers. "
4848
"``Py_MARSHAL_VERSION`` indicates the current file format (currently 2)."
4949
msgstr ""
50+
"此模块支持两种数据格式版本:第 0 版为历史版本,第 1 版本会在文件和 marshal 反序列化中共享固化的字符串。 第 2 "
51+
"版本会对浮点数使用二进制格式。 ``Py_MARSHAL_VERSION`` 指明了当前文件的格式(当前取值为 2)。"
5052

5153
#: ../../c-api/marshal.rst:24
5254
msgid ""

c-api/module.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -634,7 +634,7 @@ msgstr "如果成功,返回 ``0``。如果发生错误,引发异常并返回
634634
msgid ""
635635
"Return ``-1`` if *value* is ``NULL``. It must be called with an exception "
636636
"raised in this case."
637-
msgstr ""
637+
msgstr "如果 *value* 为 ``NULL`` 则返回 ``-1``。 在此情况下调用它必须附带一个异常。"
638638

639639
#: ../../c-api/module.rst:500 ../../c-api/module.rst:549
640640
msgid "Example usage::"

c-api/number.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -74,6 +74,9 @@ msgid ""
7474
"floating-point value when passed two integers. This is the equivalent of "
7575
"the Python expression ``o1 / o2``."
7676
msgstr ""
77+
"返回 *o1* 除以 *o2* 的数学值的合理近似值,或失败时返回 ``NULL``。 返回的是 \"近似值\" "
78+
"因为二进制浮点数本身就是近似值;不可能以二进制精确表示所有实数。 此函数可以在传入两个整数时返回一个浮点值。 此函数等价于 Python 表达式 "
79+
"``o1 / o2``。"
7780

7881
#: ../../c-api/number.rst:61
7982
msgid ""
@@ -210,6 +213,9 @@ msgid ""
210213
"place* when *o1* supports it. This is the equivalent of the Python statement"
211214
" ``o1 /= o2``."
212215
msgstr ""
216+
"返回 *o1* 除以 *o2* 的数学值的合理近似值,或失败时返回 ``NULL``。 返回的是 \"近似值\" "
217+
"因为二进制浮点数本身就是近似值;不可能以二进制精确表示所有实数。 此函数可以在传入两个整数时返回一个浮点数。 此运算在 *o1* 支持的时候会 *原地*"
218+
" 执行。此函数等价于 Python 语句 ``o1 /= o2``。"
213219

214220
#: ../../c-api/number.rst:188
215221
msgid ""

faq/design.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -125,7 +125,7 @@ msgstr ""
125125
msgid ""
126126
"Many numbers that can be written easily in decimal notation cannot be "
127127
"expressed exactly in binary floating point. For example, after::"
128-
msgstr ""
128+
msgstr "许多可以轻松地用十进制表示的数字不能用二进制浮点表示。 例如,在输入以下语句后::"
129129

130130
#: ../../faq/design.rst:77
131131
msgid ""
@@ -148,7 +148,7 @@ msgstr "典型的 53 位精度为 Python 浮点数提供了 15-16 位小数的
148148
msgid ""
149149
"For a fuller explanation, please see the :ref:`floating-point arithmetic "
150150
"<tut-fp-issues>` chapter in the Python tutorial."
151-
msgstr ""
151+
msgstr "要获得更完整的解释,请参阅 Python 教程中的 :ref:`浮点算术 <tut-fp-issues>` 一章。"
152152

153153
#: ../../faq/design.rst:95
154154
msgid "Why are Python strings immutable?"

faq/library.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -929,7 +929,7 @@ msgstr ":mod:`random` 标准库模块实现了随机数生成器,使用起来
929929

930930
#: ../../faq/library.rst:828
931931
msgid "This returns a random floating-point number in the range [0, 1)."
932-
msgstr ""
932+
msgstr "这将返回一个 [0, 1) 区间的随机浮点数。"
933933

934934
#: ../../faq/library.rst:830
935935
msgid ""
@@ -942,7 +942,7 @@ msgstr "``randrange(a, b)`` 返回 [a, b) 区间内的一个整型数。"
942942

943943
#: ../../faq/library.rst:833
944944
msgid "``uniform(a, b)`` chooses a floating-point number in the range [a, b)."
945-
msgstr ""
945+
msgstr "``uniform(a, b)`` 在 [a, b) 区间选择一个浮点数。"
946946

947947
#: ../../faq/library.rst:834
948948
msgid ""

faq/programming.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-07-19 14:50+0000\n"
14+
"POT-Creation-Date: 2024-07-26 14:49+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1091,6 +1091,8 @@ msgid ""
10911091
"``int('144') == 144``. Similarly, :func:`float` converts to a floating-"
10921092
"point number, e.g. ``float('144') == 144.0``."
10931093
msgstr ""
1094+
"对于整数,可使用内置的 :func:`int` 类型构造器,例如 ``int('144') == 144``。 类似地,可使用 "
1095+
":func:`float` 转换为浮点数,例如 ``float('144') == 144.0``。"
10941096

10951097
#: ../../faq/programming.rst:875
10961098
msgid ""
@@ -2088,20 +2090,20 @@ msgstr ""
20882090
msgid ""
20892091
"The identifier can be used unchanged within the class, but to access it "
20902092
"outside the class, the mangled name must be used:"
2091-
msgstr ""
2093+
msgstr "标识符可以在类的内部不加改变地使用,但要在类的外部访问它,就必须使用被混淆的名称:"
20922094

20932095
#: ../../faq/programming.rst:1761
20942096
msgid ""
20952097
"In particular, this does not guarantee privacy since an outside user can "
20962098
"still deliberately access the private attribute; many Python programmers "
20972099
"never bother to use private variable names at all."
2098-
msgstr ""
2100+
msgstr "需要特别指出,这并不能保证私密性因为外部用户仍然可以有意地访问私有属性;许多 Python 程序员根本就不屑于使用私有变量名。"
20992101

21002102
#: ../../faq/programming.rst:1767
21012103
msgid ""
21022104
"The :ref:`private name mangling specifications <private-name-mangling>` for "
21032105
"details and special cases."
2104-
msgstr ""
2106+
msgstr ":ref:`私有名称调整规范说明 <private-name-mangling>` 了解相关详情和特例。"
21052107

21062108
#: ../../faq/programming.rst:1771
21072109
msgid ""

0 commit comments

Comments
 (0)