Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e22914

Browse files
[po] auto sync
1 parent 192e0b3 commit 9e22914

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

faq/programming.po

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,13 +1880,13 @@ msgid ""
18801880
"``Base.meth(self, arguments...)``. Here, ``Base.meth`` is an unbound "
18811881
"method, so you need to provide the ``self`` argument."
18821882
msgstr ""
1883-
"对于 Python 3.0之前的版本,您可能正在使用经典类:对于诸如 ``class Derived(Base): ...`` 之类的类定义,可以将在 "
1884-
"``Base`` (或 ``Base`` 中的一个的基类)中定义的方法 ``meth()`` 调用为 ``Base.meth(self, "
1885-
"arguments...)`` 。这里, ``Base.meth`` 是一个未绑定的方法,因此您需要提供 ``self`` 参数。"
1883+
"如果是 Python 3.0 之前的版本,可能用的还是传统类:对于诸如 ``class Derived(Base): ...`` 之类的类定义,可以用 "
1884+
"``Base.meth(self, arguments...)`` 的形式调用 ``Base`` (或 ``Base`` 的某个基类)中定义的方法 "
1885+
"``meth()`` 。这里, ``Base.meth`` 是一个未绑定的方法,因此需要给出 ``self`` 参数。"
18861886

18871887
#: ../../faq/programming.rst:1553
18881888
msgid "How can I organize my code to make it easier to change the base class?"
1889-
msgstr "如何组织代码以便更改基类?"
1889+
msgstr "如何让代码更容易对基类进行修改?"
18901890

18911891
#: ../../faq/programming.rst:1555
18921892
msgid ""
@@ -1895,8 +1895,7 @@ msgid ""
18951895
"this trick is also handy if you want to decide dynamically (e.g. depending "
18961896
"on availability of resources) which base class to use. Example::"
18971897
msgstr ""
1898-
"你可以为基类赋一个别名并基于该别名进行派生。 这样你需要修改的内容就都是赋给该别名的值。 "
1899-
"顺便提一下,如果你想要动态地决定(例如根据资源的可用性)应使用哪个基类,这个技巧也非常方便。 例如::"
1898+
"可以为基类赋一个别名并基于该别名进行派生。这样只要修改赋给该别名的值即可。顺便提一下,如要动态地确定(例如根据可用的资源)该使用哪个基类,这个技巧也非常方便。例如:"
19001899

19011900
#: ../../faq/programming.rst:1570
19021901
msgid "How do I create static class data and static class methods?"
@@ -1906,22 +1905,22 @@ msgstr "如何创建静态类数据和静态类方法?"
19061905
msgid ""
19071906
"Both static data and static methods (in the sense of C++ or Java) are "
19081907
"supported in Python."
1909-
msgstr "Python支持静态数据和静态方法(在C ++或Java的意义上)。"
1908+
msgstr "Python 支持静态数据和静态方法(以 C++ 或 Java 的定义而言)。"
19101909

19111910
#: ../../faq/programming.rst:1575
19121911
msgid ""
19131912
"For static data, simply define a class attribute. To assign a new value to "
19141913
"the attribute, you have to explicitly use the class name in the assignment::"
1915-
msgstr "对于静态数据,只需定义一个类属性。要为属性分配新值,就必须在赋值中显式使用类名:"
1914+
msgstr "静态数据只需定义一个类属性即可。若要为属性赋新值,则必须在赋值时显式使用类名:"
19161915

19171916
#: ../../faq/programming.rst:1587
19181917
msgid ""
19191918
"``c.count`` also refers to ``C.count`` for any ``c`` such that "
19201919
"``isinstance(c, C)`` holds, unless overridden by ``c`` itself or by some "
19211920
"class on the base-class search path from ``c.__class__`` back to ``C``."
19221921
msgstr ""
1923-
"对于任意 ``c`` 来说只要 ``isinstance(c, C)`` 为真,则 ``c.count`` 同样也指向 ``C.count``,除非被 "
1924-
"``c`` 自身,或者从 ``c.__class__`` 回到 ``C`` 的基类搜索路径上的某个类所重载。"
1922+
"对于所有符合 ``isinstance(c, C)`` 的 ``c``, ``c.count`` 也同样指向 ``C.count`` ,除非被 "
1923+
"``c`` 自身重载,或者被由 ``c.__class__`` 回溯到 ``C`` 的基类搜索路径上的某个类所重载。"
19251924

19261925
#: ../../faq/programming.rst:1591
19271926
msgid ""

0 commit comments

Comments
 (0)