File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 92.31 %" , "updated_at" : " 2023-12-09T06 :55:44Z " }
1+ {"translation" : " 92.32 %" , "updated_at" : " 2023-12-09T07 :55:55Z " }
Original file line number Diff line number Diff line change @@ -194,6 +194,8 @@ msgid ""
194194":attr:`~codeobject.co_filename`. If applicable, :attr:`__cached__` will "
195195"also be set."
196196msgstr ""
197+ "模块的 :attr:`__file__` 属性将被设为代码对象的 :attr:`~codeobject.co_filename`。 如果适用,还将设置 "
198+ ":attr:`__cached__`。"
197199
198200#: ../../c-api/import.rst:144
199201msgid ""
Original file line number Diff line number Diff line change @@ -816,6 +816,8 @@ msgid ""
816816"the C representation is a pointer; with :c:macro:`!Py_T_STRING_INPLACE` the "
817817"string is stored directly in the structure."
818818msgstr ""
819+ "(*): 以零结束的 UTF8 编码的 C 字符串。 使用 :c:macro:`!Py_T_STRING` 时的 C 表示形式是一个指针;使用 "
820+ ":c:macro:`!Py_T_STRING_INPLACE` 时字符串将直接存储在结构体中。"
819821
820822#: ../../c-api/structures.rst:598
821823msgid "(**): String of length 1. Only ASCII is accepted."
Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ msgid ""
598598"The exception object has a single attribute :attr:`!value`, which is given "
599599"as an argument when constructing the exception, and defaults to "
600600":const:`None`."
601- msgstr ""
601+ msgstr "该异常对象只有一个属性 :attr:`!value`,它在构造该异常时作为参数给出,默认值为 :const:`None`。 "
602602
603603#: ../../library/exceptions.rst:438
604604msgid ""
Original file line number Diff line number Diff line change @@ -976,6 +976,9 @@ msgid ""
976976":meth:`!m`, and :attr:`m.__func__ <method.__func__>` is the :ref:`function "
977977"object <user-defined-funcs>` corresponding to the method."
978978msgstr ""
979+ ":ref:`实例方法对象 <instance-methods>` 也具有属性: :attr:`m.__self__ <method.__self__>`"
980+ " 就是带有 :meth:`!m` 方法的实例对象,而 :attr:`m.__func__ <method.__func__>` 就是该方法所对应的 "
981+ ":ref:`函数对象 <user-defined-funcs>`。"
979982
980983#: ../../tutorial/classes.rst:782
981984msgid "Iterators"
You can’t perform that action at this time.
0 commit comments