@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version :Python 3.13\n "
1414"Report-Msgid-Bugs-To :\n "
15- "POT-Creation-Date :2025-10-09 15:03 +0000\n "
15+ "POT-Creation-Date :2025-10-29 15:09 +0000\n "
1616"PO-Revision-Date :2025-09-15 01:04+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 "
@@ -178,6 +178,10 @@ msgid ""
178178"instead of a view object. The :meth:`!setdefault` method requires two "
179179"arguments."
180180msgstr ""
181+ "由 :func:`~dbm.open` 返回的对象支持可变 :term:`映射 <mapping>` "
182+ "的基本功能;键与其对应的值可以被存储、获取、删除以及迭代,还可使用 :keyword:`in` 运算符以及 :meth:`!keys`, "
183+ ":meth:`!get`, :meth:`!setdefault` 和 :meth:`!clear` 等方法。 :meth:`!keys` "
184+ "方法将返回一个列表而不是视图对象。 :meth:`!setdefault` 方法需要两个参数。"
181185
182186#: ../../library/dbm.rst:95
183187msgid ""
@@ -212,7 +216,7 @@ msgstr "从只读数据库中删除键将引发数据库模块专属的异常而
212216
213217#: ../../library/dbm.rst:114
214218msgid ":meth:`!clear` methods are now available for all :mod:`dbm` backends."
215- msgstr ""
219+ msgstr "现在 :meth:`!clear` 方法对所有 :mod:`dbm` 后端均可用。 "
216220
217221#: ../../library/dbm.rst:118
218222msgid ""
@@ -333,6 +337,8 @@ msgid ""
333337"method requires two arguments. It also supports a\" closing\" context "
334338"manager via the :keyword:`with` keyword."
335339msgstr ""
340+ "返回的数据库对象行为类似于可变 :term:`mapping`,但其 :meth:`!keys` 方法将返回一个列表,而 "
341+ ":meth:`!setdefault` 方法需要两个参数。 它还支持通过 :keyword:`with` 关键字来支持“关闭”上下文管理器。"
336342
337343#: ../../library/dbm.rst:198 ../../library/dbm.rst:399
338344msgid "The following method is also provided:"
@@ -452,18 +458,22 @@ msgid ""
452458"arguments. It also supports a\" closing\" context manager via the "
453459":keyword:`with` keyword."
454460msgstr ""
461+ ":class:`!gdbm` 对象行为类似于可变 :term:`映射 <mapping>`,但不支持 :meth:`!items`, "
462+ ":meth:`!values`, :meth:`!pop`, :meth:`!popitem` 和 :meth:`!update` "
463+ "等方法,:meth:`!keys` 方法将返回一个列表,而 :meth:`!setdefault` 方法需要两个参数。 它还支持通过 "
464+ ":keyword:`with` 关键字来支持“关闭”上下文管理器。"
455465
456466#: ../../library/dbm.rst:280 ../../library/dbm.rst:393
457467msgid "Added the :meth:`!get` and :meth:`!setdefault` methods."
458- msgstr ""
468+ msgstr "增加了 :meth:`!get` 和 :meth:`!setdefault` 方法。 "
459469
460470#: ../../library/dbm.rst:283 ../../library/dbm.rst:396
461471msgid "Added the :meth:`!clear` method."
462- msgstr ""
472+ msgstr "增加了 :meth:`!clear` 方法。 "
463473
464474#: ../../library/dbm.rst:286 ../../library/dbm.rst:479
465475msgid "The following methods are also provided:"
466- msgstr ""
476+ msgstr "还提供了以下方法: "
467477
468478#: ../../library/dbm.rst:290
469479msgid "Close the GDBM database."
@@ -577,6 +587,10 @@ msgid ""
577587"arguments. It also supports a\" closing\" context manager via the "
578588":keyword:`with` keyword."
579589msgstr ""
590+ ":class:`!ndbm` 对象行为类似于可变 :term:`映射 <mapping>`,但不支持 :meth:`!items`, "
591+ ":meth:`!values`, :meth:`!pop`, :meth:`!popitem` 和 :meth:`!update` "
592+ "等方法,:meth:`!keys` 方法将返回一个列表,而 :meth:`!setdefault` 方法需要两个参数。 它还通过 "
593+ ":keyword:`with` 关键字来支持“关闭”上下文管理器。"
580594
581595#: ../../library/dbm.rst:403
582596msgid "Close the NDBM database."
@@ -623,7 +637,7 @@ msgstr ""
623637
624638#: ../../library/dbm.rst:440
625639msgid "Open a :mod:`!dbm.dumb` database."
626- msgstr ""
640+ msgstr "打开 :mod:`!dbm.dumb` 数据库。 "
627641
628642#: ../../library/dbm.rst:442
629643msgid ""
@@ -691,6 +705,8 @@ msgid ""
691705":meth:`!setdefault` method requires two arguments. It also supports a "
692706"\" closing\" context manager via the :keyword:`with` keyword."
693707msgstr ""
708+ "返回的数据库对象行为类似于可变 :term:`mapping`,但 :meth:`!keys` 和 :meth:`!items` 将返回列表,而 "
709+ ":meth:`!setdefault` 方法需要两个参数。 它还通过 :keyword:`with` 关键字支持“关闭”上下文管理器。"
694710
695711#: ../../library/dbm.rst:483
696712msgid "Close the database."