@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version :Python 3.14\n "
1414"Report-Msgid-Bugs-To :\n "
15- "POT-Creation-Date :2025-10-09 14:15 +0000\n "
15+ "POT-Creation-Date :2025-10-25 14:12 +0000\n "
1616"PO-Revision-Date :2025-09-16 00:01+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 "
@@ -786,6 +786,12 @@ msgid ""
786786"*slots*, and *weakref_slot* have the same meaning as they do in "
787787":deco:`dataclass`."
788788msgstr ""
789+ "新建一个名为 *cls_name* 的数据类,其字段在 *fields* 中定义,其基类在 *bases* 中给出,并使用在 *namespace* "
790+ "中给定的命名空间来初始化。 *fields* 是一个可迭代对象,其中每个元素均为 ``name``, ``(name, type)`` 或 "
791+ "``(name, type, Field)`` 的形式。 如果只提供了 ``name``,则使用 :data:`typing.Any` 作为 "
792+ "``type``。 *init*, *repr*, *eq*, *order*, *unsafe_hash*, *frozen*, "
793+ "*match_args*, *kw_only*, *slots* 和 *weakref_slot* 等值与其在 :deco:`dataclass` "
794+ "中具有相同的含义。"
789795
790796#: ../../library/dataclasses.rst:432
791797msgid ""
@@ -802,6 +808,8 @@ msgid ""
802808"keyword arguments as :deco:`dataclass`. By default, the :deco:`dataclass` "
803809"function is used."
804810msgstr ""
811+ "*decorator* 形参是将被用于创建数据类的可调用对象。 它应当接受该类对象作为第一个参数以及与 :deco:`dataclass` "
812+ "相同的关键字参数。 在默认情况下,将会使用 :deco:`dataclass` 函数。"
805813
806814#: ../../library/dataclasses.rst:441
807815msgid ""
@@ -810,6 +818,8 @@ msgid ""
810818" :deco:`dataclass` function to convert that class to a dataclass. This "
811819"function is provided as a convenience. For example::"
812820msgstr ""
821+ "此函数不是严格必需的,因为任何用于创建带有 :attr:`~object.__annotations__` 的新类的 Python 机制都可以在稍后应用"
822+ " :deco:`dataclass` 函数将类转换为数据类。 提供此函数是为了更方便。 例如::"
813823
814824#: ../../library/dataclasses.rst:447
815825msgid ""
@@ -1042,6 +1052,8 @@ msgid ""
10421052":meth:`!__init__` method that has to be called, it is common to call this "
10431053"method in a :meth:`__post_init__` method::"
10441054msgstr ""
1055+ "由 :deco:`dataclass` 生成的 :meth:`~object.__init__` 方法不会调用基类的 :meth:`!__init__`"
1056+ " 方法。 如果基类有需要被调用的 :meth:`!__init__` 方法,通常是在 :meth:`__post_init__` 方法中调用此方法::"
10451057
10461058#: ../../library/dataclasses.rst:577
10471059msgid ""