11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2023 , Python Software Foundation
2+ # Copyright (C) 2001-2024 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
1010# ww song <[email protected] >, 20221111# 乐成 王, 2023
1212# Bryan不可思议, 2023
13- # Freesand Leo <[email protected] >, 2023 13+ # Freesand Leo <[email protected] >, 2024 1414#
1515#, fuzzy
1616msgid ""
1717msgstr ""
1818"Project-Id-Version : Python 3.12\n "
1919"Report-Msgid-Bugs-To : \n "
20- "POT-Creation-Date : 2023-10-27 14:49 +0000\n "
20+ "POT-Creation-Date : 2024-03-08 21:29 +0000\n "
2121"PO-Revision-Date : 2021-06-28 01:50+0000\n "
22- "
Last-Translator :
Freesand Leo <[email protected] >, 2023 \n "
22+ "
Last-Translator :
Freesand Leo <[email protected] >, 2024 \n "
2323"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2424"MIME-Version : 1.0\n "
2525"Content-Type : text/plain; charset=UTF-8\n "
@@ -407,49 +407,59 @@ msgid ""
407407msgstr "和字符串(及其他内置 :term:`sequence` 类型)一样,列表也支持索引和切片:"
408408
409409#: ../../tutorial/introduction.rst:408
410- msgid ""
411- "All slice operations return a new list containing the requested elements. "
412- "This means that the following slice returns a :ref:`shallow copy "
413- "<shallow_vs_deep_copy>` of the list::"
414- msgstr "切片操作返回包含请求元素的新列表。以下切片操作会返回列表的 :ref:`浅拷贝 <shallow_vs_deep_copy>`:"
415-
416- #: ../../tutorial/introduction.rst:415
417410msgid "Lists also support operations like concatenation::"
418411msgstr "列表还支持合并操作:"
419412
420- #: ../../tutorial/introduction.rst:420
413+ #: ../../tutorial/introduction.rst:413
421414msgid ""
422415"Unlike strings, which are :term:`immutable`, lists are a :term:`mutable` "
423416"type, i.e. it is possible to change their content::"
424417msgstr "与 :term:`immutable` 字符串不同, 列表是 :term:`mutable` 类型,其内容可以改变:"
425418
426- #: ../../tutorial/introduction.rst:430
419+ #: ../../tutorial/introduction.rst:423
427420msgid ""
428421"You can also add new items at the end of the list, by using the "
429422":meth:`!list.append` *method* (we will see more about methods later)::"
430423msgstr "你也可以在通过使用 :meth:`!list.append` *方法*,在列表末尾添加新条目(我们将在后面介绍更多相关的方法)::"
431424
432- #: ../../tutorial/introduction.rst:438
425+ #: ../../tutorial/introduction.rst:431
426+ msgid ""
427+ "Simple assignment in Python never copies data. When you assign a list to a "
428+ "variable, the variable refers to the *existing list*. Any changes you make "
429+ "to the list through one variable will be seen through all other variables "
430+ "that refer to it.::"
431+ msgstr ""
432+ "Python 中的简单赋值绝不会复制数据。 当你将一个列表赋值给一个变量时,该变量将引用 "
433+ "*现有的列表*。你通过一个变量对列表所做的任何更改都会被引用它的所有其他变量看到。::"
434+
435+ #: ../../tutorial/introduction.rst:444
436+ msgid ""
437+ "All slice operations return a new list containing the requested elements. "
438+ "This means that the following slice returns a :ref:`shallow copy "
439+ "<shallow_vs_deep_copy>` of the list::"
440+ msgstr "切片操作返回包含请求元素的新列表。以下切片操作会返回列表的 :ref:`浅拷贝 <shallow_vs_deep_copy>`:"
441+
442+ #: ../../tutorial/introduction.rst:455
433443msgid ""
434444"Assignment to slices is also possible, and this can even change the size of "
435445"the list or clear it entirely::"
436446msgstr "为切片赋值可以改变列表大小,甚至清空整个列表:"
437447
438- #: ../../tutorial/introduction.rst:457
448+ #: ../../tutorial/introduction.rst:474
439449msgid "The built-in function :func:`len` also applies to lists::"
440450msgstr "内置函数 :func:`len` 也支持列表:"
441451
442- #: ../../tutorial/introduction.rst:463
452+ #: ../../tutorial/introduction.rst:480
443453msgid ""
444454"It is possible to nest lists (create lists containing other lists), for "
445455"example::"
446456msgstr "还可以嵌套列表(创建包含其他列表的列表),例如:"
447457
448- #: ../../tutorial/introduction.rst:479
458+ #: ../../tutorial/introduction.rst:496
449459msgid "First Steps Towards Programming"
450460msgstr "走向编程的第一步"
451461
452- #: ../../tutorial/introduction.rst:481
462+ #: ../../tutorial/introduction.rst:498
453463msgid ""
454464"Of course, we can use Python for more complicated tasks than adding two and "
455465"two together. For instance, we can write an initial sub-sequence of the "
@@ -459,11 +469,11 @@ msgstr ""
459469"当然,我们还能用 Python 完成比二加二更复杂的任务。 例如,我们可以像下面这样写出 `斐波那契数列 "
460470"<https://en.wikipedia.org/wiki/Fibonacci_sequence>`_ 初始部分的子序列::"
461471
462- #: ../../tutorial/introduction.rst:501
472+ #: ../../tutorial/introduction.rst:518
463473msgid "This example introduces several new features."
464474msgstr "本例引入了几个新功能。"
465475
466- #: ../../tutorial/introduction.rst:503
476+ #: ../../tutorial/introduction.rst:520
467477msgid ""
468478"The first line contains a *multiple assignment*: the variables ``a`` and "
469479"``b`` simultaneously get the new values 0 and 1. On the last line this is "
@@ -474,7 +484,7 @@ msgstr ""
474484"第一行中的 *多重赋值* :变量 ``a`` 和 ``b`` 同时获得新值 0 和 1 "
475485"。最后一行又用了一次多重赋值,体现了,等号右边的所有表达式的值,都是在这一语句对任何变量赋新值之前求出来的——求值顺序为从左到右。"
476486
477- #: ../../tutorial/introduction.rst:509
487+ #: ../../tutorial/introduction.rst:526
478488msgid ""
479489"The :keyword:`while` loop executes as long as the condition (here: ``a < "
480490"10``) remains true. In Python, like in C, any non-zero integer value is "
@@ -490,7 +500,7 @@ msgstr ""
490500" C 语言一样: ``<`` (小于)、 ``>`` (大于)、 ``==`` (等于)、 ``<=`` (小于等于)、 ``>=`` (大于等于)及 "
491501"``!=`` (不等于)。"
492502
493- #: ../../tutorial/introduction.rst:518
503+ #: ../../tutorial/introduction.rst:535
494504msgid ""
495505"The *body* of the loop is *indented*: indentation is Python's way of "
496506"grouping statements. At the interactive prompt, you have to type a tab or "
@@ -504,7 +514,7 @@ msgstr ""
504514"*循环体* 是 *缩进的* :缩进是 Python "
505515"组织语句的方式。在交互式命令行里,得为每个缩进的行输入空格(或制表符)。使用文本编辑器可以实现更复杂的输入方式;所有像样的文本编辑器都支持自动缩进。交互式输入复合语句时,要在最后输入空白行表示完成(因为解析器不知道哪一行代码是代码块的最后一行)。注意,同一块语句的每一行的缩进相同。"
506516
507- #: ../../tutorial/introduction.rst:527
517+ #: ../../tutorial/introduction.rst:544
508518msgid ""
509519"The :func:`print` function writes the value of the argument(s) it is given. "
510520"It differs from just writing the expression you want to write (as we did "
@@ -516,17 +526,17 @@ msgstr ""
516526":func:`print` "
517527"函数输出给定参数的值。除了可以以单一的表达式作为参数(比如,前面的计算器的例子),它还能处理多个参数,包括浮点数与字符串。它输出的字符串不带引号,且各参数项之间会插入一个空格,这样可以实现更好的格式化操作:"
518528
519- #: ../../tutorial/introduction.rst:538
529+ #: ../../tutorial/introduction.rst:555
520530msgid ""
521531"The keyword argument *end* can be used to avoid the newline after the "
522532"output, or end the output with a different string::"
523533msgstr "关键字参数 *end* 可以取消输出后面的换行, 或用另一个字符串结尾:"
524534
525- #: ../../tutorial/introduction.rst:550
535+ #: ../../tutorial/introduction.rst:567
526536msgid "Footnotes"
527537msgstr "备注"
528538
529- #: ../../tutorial/introduction.rst:551
539+ #: ../../tutorial/introduction.rst:568
530540msgid ""
531541"Since ``**`` has higher precedence than ``-``, ``-3**2`` will be interpreted"
532542" as ``-(3**2)`` and thus result in ``-9``. To avoid this and get ``9``, you"
@@ -535,7 +545,7 @@ msgstr ""
535545"``**`` 比 ``-`` 的优先级更高, 所以 ``-3**2`` 会被解释成 ``-(3**2)`` ,因此,结果是 "
536546"``-9``。要避免这个问题,并且得到 ``9``, 可以用 ``(-3)**2``。"
537547
538- #: ../../tutorial/introduction.rst:555
548+ #: ../../tutorial/introduction.rst:572
539549msgid ""
540550"Unlike other languages, special characters such as ``\\ n`` have the same "
541551"meaning with both single (``'...'``) and double (``\" ...\" ``) quotes. The "
0 commit comments