File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,26 +75,33 @@ msgid ""
7575"on failure. This is equivalent to the Python statement ``del o[key]``. This"
7676" is an alias of :c:func:`PyObject_DelItem`."
7777msgstr ""
78+ "从对象 *o* 中移除对象 *key* 的映射。 失败时返回 ``-1``。 这相当于 Python 语句 ``del o[key]``。 这是 "
79+ ":c:func:`PyObject_DelItem` 的一个别名。"
7880
7981#: ../../c-api/mapping.rst:53
8082msgid ""
8183"Remove the mapping for the string *key* from the object *o*. Return ``-1`` "
8284"on failure. This is equivalent to the Python statement ``del o[key]``."
8385msgstr ""
86+ "从对象 *o* 中移除字符串 *key* 的映射。 失败时返回 ``-1``。 这相当于 Python 语句 ``del o[key]``。"
8487
8588#: ../../c-api/mapping.rst:59 ../../c-api/mapping.rst:70
8689msgid ""
8790"Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
8891"This is equivalent to the Python expression ``key in o``. This function "
8992"always succeeds."
9093msgstr ""
94+ "如果映射对象具有键 *key* 则返回 ``1``,否则返回 ``0``。 这相当于 Python 表达式 ``key in o``。 "
95+ "此函数总是会成功执行。"
9196
9297#: ../../c-api/mapping.rst:63
9398msgid ""
9499"Note that exceptions which occur while calling the :meth:`__getitem__` "
95100"method will get suppressed. To get error reporting use "
96101":c:func:`PyObject_GetItem()` instead."
97102msgstr ""
103+ "请注意在调用 :meth:`__getitem__` 方法期间发生的异常将会被屏蔽。 要获取错误报告请改用 "
104+ ":c:func:`PyObject_GetItem()`。"
98105
99106#: ../../c-api/mapping.rst:74
100107msgid ""
You can’t perform that action at this time.
0 commit comments