@@ -5227,13 +5227,13 @@ msgstr "字典视图可以被迭代以产生与其对应的数据,并支持成
52275227
52285228#: ../../library/stdtypes.rst:4313
52295229msgid "Return the number of entries in the dictionary."
5230- msgstr ""
5230+ msgstr "返回字典中的条目数。 "
52315231
52325232#: ../../library/stdtypes.rst:4317
52335233msgid ""
52345234"Return an iterator over the keys, values or items (represented as tuples of "
52355235"``(key, value)``) in the dictionary."
5236- msgstr ""
5236+ msgstr "返回字典中的键、值或项(以 ``(键, 值)`` 为元素的元组表示)的迭代器。 "
52375237
52385238#: ../../library/stdtypes.rst:4320
52395239msgid ""
@@ -5242,22 +5242,25 @@ msgid ""
52425242"zip(d.values(), d.keys())``. Another way to create the same list is ``pairs"
52435243" = [(v, k) for (k, v) in d.items()]``."
52445244msgstr ""
5245+ "键和值是按插入时的顺序进行迭代的。 这样就允许使用 :func:`zip` 来创建 ``(值, 键)`` 对: ``pairs = "
5246+ "zip(d.values(), d.keys())``。 另一个创建相同列表的方式是 ``pairs = [(v, k) for (k, v) in "
5247+ "d.items()]``."
52455248
52465249#: ../../library/stdtypes.rst:4325
52475250msgid ""
52485251"Iterating views while adding or deleting entries in the dictionary may raise"
52495252" a :exc:`RuntimeError` or fail to iterate over all entries."
5250- msgstr ""
5253+ msgstr "在添加或删除字典中的条目期间对视图进行迭代可能引发 :exc:`RuntimeError` 或者无法完全迭代所有条目。 "
52515254
52525255#: ../../library/stdtypes.rst:4328
52535256msgid "Dictionary order is guaranteed to be insertion order."
5254- msgstr ""
5257+ msgstr "字典顺序会确保为插入顺序。 "
52555258
52565259#: ../../library/stdtypes.rst:4333
52575260msgid ""
52585261"Return ``True`` if *x* is in the underlying dictionary's keys, values or "
52595262"items (in the latter case, *x* should be a ``(key, value)`` tuple)."
5260- msgstr ""
5263+ msgstr "如果 *x* 是对应字典中存在的键、值或项(在最后一种情况下 *x* 应为一个 ``(键, 值)`` 元组) 则返回 ``True``。 "
52615264
52625265#: ../../library/stdtypes.rst:4337
52635266msgid ""
0 commit comments