@@ -16,7 +16,7 @@ msgid ""
1616msgstr ""
1717"Project-Id-Version : Python 3.12\n "
1818"Report-Msgid-Bugs-To : \n "
19- "POT-Creation-Date : 2023-08-25 20:17 +0000\n "
19+ "POT-Creation-Date : 2023-08-25 22:29 +0000\n "
2020"PO-Revision-Date : 2021-06-28 00:48+0000\n "
2121"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
2222"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -100,6 +100,9 @@ msgid ""
100100"created using ``PyUnicode_FromString(key)``. Return ``0`` on success or "
101101"``-1`` on failure. This function *does not* steal a reference to *val*."
102102msgstr ""
103+ "使用 *key* 作为键将 *val* 插入到字典 *p* 中。 *key* 应为 :c:expr:`const char*` UTF-8 "
104+ "编码的字节串。 键对象是使用 ``PyUnicode_FromString(key)`` 创建的。 成功时返回 ``0``,失败时返回 ``-1``。 "
105+ "此函数 *不会* 偷取对 *val* 的引用。"
103106
104107#: ../../c-api/dict.rst:83
105108msgid ""
@@ -118,6 +121,8 @@ msgid ""
118121"encoded bytes string *key*. If *key* is not in the dictionary, "
119122":exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on failure."
120123msgstr ""
124+ "移除字典 *p* 中由 UTF-8 编码的字节串 *key* 指定的键的条目。 如果字典中不存在 *key*,则会引发 :exc:`KeyError`。"
125+ " 成功时返回 ``0``,失败时返回 ``-1``。"
121126
122127#: ../../c-api/dict.rst:99
123128msgid ""
@@ -156,6 +161,8 @@ msgid ""
156161":c:expr:`const char*` UTF-8 encoded bytes string, rather than a "
157162":c:expr:`PyObject*`."
158163msgstr ""
164+ "这与 :c:func:`PyDict_GetItem` 一样,但 *key* 是由一个 :c:expr:`const char*` UTF-8 "
165+ "编码的字节串来指定的,而不是 :c:expr:`PyObject*`。"
159166
160167#: ../../c-api/dict.rst:129
161168msgid ""
0 commit comments