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

Commitab740c0

Browse files
[po] auto sync
1 parent5d8e88e commitab740c0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"99.66%","updated_at":"2025-10-27T01:43:04Z"}
1+
{"translation":"99.66%","updated_at":"2025-10-27T08:18:20Z"}

‎library/dataclasses.po‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
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`."
788788
msgstr""
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
791797
msgid""
@@ -802,6 +808,8 @@ msgid ""
802808
"keyword arguments as :deco:`dataclass`. By default, the :deco:`dataclass` "
803809
"function is used."
804810
msgstr""
811+
"*decorator* 形参是将被用于创建数据类的可调用对象。 它应当接受该类对象作为第一个参数以及与 :deco:`dataclass` "
812+
"相同的关键字参数。 在默认情况下,将会使用 :deco:`dataclass` 函数。"
805813

806814
#:../../library/dataclasses.rst:441
807815
msgid""
@@ -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::"
812820
msgstr""
821+
"此函数不是严格必需的,因为任何用于创建带有 :attr:`~object.__annotations__` 的新类的 Python 机制都可以在稍后应用"
822+
" :deco:`dataclass` 函数将类转换为数据类。 提供此函数是为了更方便。 例如::"
813823

814824
#:../../library/dataclasses.rst:447
815825
msgid""
@@ -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::"
10441054
msgstr""
1055+
"由 :deco:`dataclass` 生成的 :meth:`~object.__init__` 方法不会调用基类的 :meth:`!__init__`"
1056+
" 方法。 如果基类有需要被调用的 :meth:`!__init__` 方法,通常是在 :meth:`__post_init__` 方法中调用此方法::"
10451057

10461058
#:../../library/dataclasses.rst:577
10471059
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp