|
4 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
5 | 5 | # |
6 | 6 | # Translators: |
7 | | -# Rafael Fontenelle <rffontenelle@gmail.com>, 2025 |
| 7 | +# python-doc bot, 2025 |
8 | 8 | # |
9 | 9 | #, fuzzy |
10 | 10 | msgid "" |
11 | 11 | msgstr "" |
12 | 12 | "Project-Id-Version: Python 3.14\n" |
13 | 13 | "Report-Msgid-Bugs-To: \n" |
14 | | -"POT-Creation-Date: 2025-05-09 14:19+0000\n" |
15 | | -"PO-Revision-Date: 2025-07-18 18:48+0000\n" |
16 | | -"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n" |
| 14 | +"POT-Creation-Date: 2025-09-07 14:14+0000\n" |
| 15 | +"PO-Revision-Date: 2025-08-02 17:33+0000\n" |
| 16 | +"Last-Translator: python-doc bot, 2025\n" |
17 | 17 | "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
18 | 18 | "MIME-Version: 1.0\n" |
19 | 19 | "Content-Type: text/plain; charset=UTF-8\n" |
@@ -827,12 +827,10 @@ msgstr "列表属于 :term:`mutable` 对象,这意味着它的内容是可以 |
827 | 827 |
|
828 | 828 | #: ../../faq/programming.rst:457 |
829 | 829 | msgid "" |
830 | | -"After the call to :meth:`!append`, the content of the mutable object has " |
831 | | -"changed from ``[]`` to ``[10]``. Since both the variables refer to the same" |
832 | | -" object, using either name accesses the modified value ``[10]``." |
| 830 | +"After the call to :meth:`~sequence.append`, the content of the mutable " |
| 831 | +"object has changed from ``[]`` to ``[10]``. Since both the variables refer " |
| 832 | +"to the same object, using either name accesses the modified value ``[10]``." |
833 | 833 | msgstr "" |
834 | | -"在调用 :meth:`!append` 之后,该可变对象的内容由 ``[]`` 变为 ``[10]``。 " |
835 | | -"由于两个变量引用了同一对象,因此用其中任意一个名称所访问到的都是修改后的值 ``[10]``。" |
836 | 834 |
|
837 | 835 | #: ../../faq/programming.rst:461 |
838 | 836 | msgid "If we instead assign an immutable object to ``x``::" |
@@ -2629,13 +2627,10 @@ msgid "" |
2629 | 2627 | "an :meth:`~object.__iadd__` magic method, it gets called when the ``+=`` " |
2630 | 2628 | "augmented assignment is executed, and its return value is what gets used in " |
2631 | 2629 | "the assignment statement; and (b) for lists, :meth:`!__iadd__` is equivalent" |
2632 | | -" to calling :meth:`!extend` on the list and returning the list. That's why " |
2633 | | -"we say that for lists, ``+=`` is a \"shorthand\" for :meth:`!list.extend`::" |
| 2630 | +" to calling :meth:`~sequence.extend` on the list and returning the list. " |
| 2631 | +"That's why we say that for lists, ``+=`` is a \"shorthand\" for " |
| 2632 | +":meth:`list.extend`::" |
2634 | 2633 | msgstr "" |
2635 | | -"要明白为什么会这样,你需要知道 (a) 如果一个对象实现了 :meth:`~object.__iadd__` 魔术方法,那么它就会在执行 ``+=`` " |
2636 | | -"增强赋值时被调用,并且其返回值将在赋值语句中被使用;(b) 对于列表而言,:meth:`!__iadd__` 等价于在列表上调用 " |
2637 | | -":meth:`!extend` 并返回该列表。 所以对于列表我们可以这样说,``+=`` 就是 :meth:`!list.extend` " |
2638 | | -"的“快捷方式”::" |
2639 | 2634 |
|
2640 | 2635 | #: ../../faq/programming.rst:1404 |
2641 | 2636 | msgid "" |
|
0 commit comments