File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ msgstr ""
276276#: ../../library/enum.rst:278
277277msgid ""
278278"The :meth:`_generate_next_value_` method must be defined before any members."
279- msgstr ""
279+ msgstr ":meth:`_generate_next_value_` 方法定义必须在任何其他成员之前。 "
280280
281281#: ../../library/enum.rst:281
282282msgid "Iteration"
Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ msgid ""
199199"instead of by position. This can be done by simply passing the dict and "
200200"using square brackets ``'[]'`` to access the keys. ::"
201201msgstr ""
202+ "如果你有一个非常长的格式字符串,你不想把它拆开,那么你最好是按名称而不是按位置引用变量来进行格式化。 这可以通过简单地传递字典并使用方括号 "
203+ "``'[]'`` 访问键来完成。 ::"
202204
203205#: ../../tutorial/inputoutput.rst:182
204206msgid ""
@@ -271,6 +273,8 @@ msgid ""
271273"zero or more elements of ``values``. This operation is commonly known as "
272274"string interpolation. For example::"
273275msgstr ""
276+ "% 运算符(求余)也可用于字符串格式化。 给定 ``'string' % values``,则 ``string`` 中的 ``%`` "
277+ "实例会以零个或多个 ``values`` 元素替换。 此操作通常被称为字符串插值。 例如::"
274278
275279#: ../../tutorial/inputoutput.rst:269
276280msgid ""
You can’t perform that action at this time.
0 commit comments