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

Commit471195c

Browse files
[po] auto sync
1 parent2b391c4 commit471195c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"99.83%","updated_at":"2025-11-07T06:18:11Z"}
1+
{"translation":"99.83%","updated_at":"2025-11-07T07:15:16Z"}

‎whatsnew/2.6.po‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,6 +2157,10 @@ msgid ""
21572157
"basic ABCs that the Python developers think will be widely useful. Future "
21582158
"versions of Python will probably add more ABCs."
21592159
msgstr""
2160+
"一些面向对象的语言如 Java 支持使用接口,即声明一个类具有一组给定的方法或支持给定的访问协议。 抽象基类 (ABC) 是 Python "
2161+
"中的等价特性。 ABC 支持由一个包含名为 :class:`~abc.ABCMeta` 的元类的 :mod:`abc` 模块,由 "
2162+
":func:`isinstance` 和 :func:`issubclass` 内置函数提供的对该元类的特殊处理,以及一系列 Python "
2163+
"开发者认为会被广泛使用的基本 ABC 组成。 未来的 Python 版本可能会添加更多的 ABC。"
21602164

21612165
#:../../whatsnew/2.6.rst:1181
21622166
msgid""
@@ -2168,6 +2172,10 @@ msgid ""
21682172
" the iterative variants such as :meth:`!iterkeys`? :meth:`!copy`and "
21692173
":meth:`!update`? Iterating over the object with :func:`!iter`?"
21702174
msgstr""
2175+
"让我们假设你有一个特定的类并想要知道它是否支持字典式访问。 然而,“字典式”一词的语意是模糊的。 它可能意味着能够通过 ``obj[1]`` "
2176+
"来访问条目。 它可能表示能够通过 ``obj[2] = value`` 来设置条目? 或者这种对象具有 :meth:`!keys`, "
2177+
":meth:`!values` 和 :meth:`!items` 方法? 那么是否要有迭代形式如 :meth:`!iterkeys` 呢? "
2178+
":meth:`!copy` 和 :meth:`!update` 呢? 通过 :func:`!iter` 来迭代对象呢?"
21712179

21722180
#:../../whatsnew/2.6.rst:1189
21732181
msgid""
@@ -2179,6 +2187,11 @@ msgid ""
21792187
"setting items, and :meth:`!keys`, :meth:`!values`, and :meth:`!items`, is "
21802188
"defined by the :class:`MutableMapping` ABC."
21812189
msgstr""
2190+
"Python 2.6 :mod:`collections` 模块包括了代表这些区别的多个不同的 ABC。 :class:`Iterable` "
2191+
"表明一个类定义了 :meth:`~object.__iter__`,而 :class:`Container` 意味着该类定义了 "
2192+
":meth:`~object.__contains__` 方法因而支持 ``x in y`` 表达式。 基本的字典接口如获取条目、设置条目,以及 "
2193+
":meth:`!keys`, :meth:`!values` 和 :meth:`!items` 等则是由 :class:`MutableMapping`"
2194+
" ABC 来定义的。"
21822195

21832196
#:../../whatsnew/2.6.rst:1198
21842197
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp