File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ msgstr ""
181181
182182#: ../../library/numbers.rst:159
183183msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
184- msgstr "如果 ``A`` 被定义成一个承认``b`` :meth:`__add__`,一切都没有问题。"
184+ msgstr "如果 ``A`` 被定义成一个承认``b`` 的 :meth:`__add__`,一切都没有问题。"
185185
186186#: ../../library/numbers.rst:161
187187msgid ""
@@ -199,20 +199,22 @@ msgstr ""
199199msgid ""
200200"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
201201"well."
202- msgstr ""
202+ msgstr "接着看 ``B`` 的 :meth:`__radd__` 。如果它承认 ``a`` ,一切都没有问题。 "
203203
204204#: ../../library/numbers.rst:169
205205msgid ""
206206"If it falls back to the boilerplate, there are no more possible methods to "
207207"try, so this is where the default implementation should live."
208- msgstr ""
208+ msgstr "如果没有成功回退到模板,就没有更多的方法可以去尝试,因此这里将使用默认的实现。 "
209209
210210#: ../../library/numbers.rst:172
211211msgid ""
212212"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is ok,"
213213" because it was implemented with knowledge of ``A``, so it can handle those "
214214"instances before delegating to :class:`Complex`."
215215msgstr ""
216+ "如果 ``B <: A`` , Python 在 ``A.__add__`` 之前尝试 ``B.__radd__`` 。 这是可行的,是通过对 "
217+ "``A`` 的认识实现的,因此这可以在交给 :class:`Complex` 处理之前处理这些实例。"
216218
217219#: ../../library/numbers.rst:177
218220msgid ""
You can’t perform that action at this time.
0 commit comments