@@ -701,21 +701,21 @@ msgstr "这有助于使用小型显示器的用户,并且可以在较大的显
701701msgid ""
702702"Use blank lines to separate functions and classes, and larger blocks of code"
703703" inside functions."
704- msgstr ""
704+ msgstr "使用空行分隔函数和类,以及函数内的较大的代码块。 "
705705
706706#: ../../tutorial/controlflow.rst:737
707707msgid "When possible, put comments on a line of their own."
708- msgstr ""
708+ msgstr "如果可能,把注释放到单独的一行。 "
709709
710710#: ../../tutorial/controlflow.rst:739
711711msgid "Use docstrings."
712- msgstr ""
712+ msgstr "使用文档字符串。 "
713713
714714#: ../../tutorial/controlflow.rst:741
715715msgid ""
716716"Use spaces around operators and after commas, but not directly inside "
717717"bracketing constructs: ``a = f(1, 2) + g(3, 4)``."
718- msgstr ""
718+ msgstr "在运算符前后和逗号后使用空格,但不能直接在括号内使用: ``a = f(1, 2) + g(3, 4)``。 "
719719
720720#: ../../tutorial/controlflow.rst:744
721721msgid ""
@@ -724,20 +724,22 @@ msgid ""
724724"and methods. Always use ``self`` as the name for the first method argument "
725725"(see :ref:`tut-firstclasses` for more on classes and methods)."
726726msgstr ""
727+ "类和函数命名的一致性;规范是使用 ``CamelCase`` 命名类,``lower_case_with_underscores`` "
728+ "命名函数和方法。始终使用 ``self`` 作为第一个方法参数的名称(有关类和方法,请参阅 :ref:`tut-firstclasses` )。"
727729
728730#: ../../tutorial/controlflow.rst:749
729731msgid ""
730732"Don't use fancy encodings if your code is meant to be used in international "
731733"environments. Python's default, UTF-8, or even plain ASCII work best in any"
732734" case."
733- msgstr ""
735+ msgstr "如果你的代码旨在用于国际环境,请不要使用花哨的编码。Python默认的,UTF-8,或者纯ASCII在任何情况下都能最好的工作。 "
734736
735737#: ../../tutorial/controlflow.rst:753
736738msgid ""
737739"Likewise, don't use non-ASCII characters in identifiers if there is only the"
738740" slightest chance people speaking a different language will read or maintain"
739741" the code."
740- msgstr ""
742+ msgstr "同样,哪怕只有很小的可能说不同语言的人会阅读或维护代码,也不要在标识符中使用非ASCII字符。 "
741743
742744#: ../../tutorial/controlflow.rst:759
743745msgid "Footnotes"
@@ -749,3 +751,4 @@ msgid ""
749751" a mutable object is passed, the caller will see any changes the callee "
750752"makes to it (items inserted into a list)."
751753msgstr ""
754+ "实际上,*通过对象引用调用* 会是一个更好的表述,因为如果传递的是可变对象,则调用者将看到被调用者对其做出的任何更改(插入到列表中的元素)。"
0 commit comments