99# cdarlint <[email protected] >, 20181010# QR Wang <[email protected] >, 2018111112- # Junkai Shao <[email protected] >, 201813- # Shengjing Zhu <[email protected] >, 20191412# jaystone776 <[email protected] >, 20211513#
1614#, fuzzy
@@ -408,23 +406,23 @@ msgstr "与 :term:`immutable` 字符串不同, 列表是 :term:`mutable` 类型
408406msgid ""
409407"You can also add new items at the end of the list, by using the "
410408":meth:`~list.append` *method* (we will see more about methods later)::"
411- msgstr "你也可以在列表结尾,通过 :meth:`~list.append` *方法* 添加新元素 (我们会在后面解释更多关于方法的内容): :"
409+ msgstr "也可以在列表结尾,用 :meth:`~list.append` *方法* 添加新元素(后文将详述此方法) :"
412410
413411#: ../../tutorial/introduction.rst:426
414412msgid ""
415413"Assignment to slices is also possible, and this can even change the size of "
416414"the list or clear it entirely::"
417- msgstr "给切片赋值也是可以的,这样甚至可以改变列表大小,或者把列表整个清空:: "
415+ msgstr "也可以为切片赋值,这项操作可以改变列表大小,甚至清空整个列表: "
418416
419417#: ../../tutorial/introduction.rst:445
420418msgid "The built-in function :func:`len` also applies to lists::"
421- msgstr "内置函数 :func:`len` 也可以作用到列表上:: "
419+ msgstr "内置函数 :func:`len` 也支持列表: "
422420
423421#: ../../tutorial/introduction.rst:451
424422msgid ""
425423"It is possible to nest lists (create lists containing other lists), for "
426424"example::"
427- msgstr "也可以嵌套列表 ( 创建包含其他列表的列表), 比如说:: "
425+ msgstr "还可以嵌套列表( 创建包含其他列表的列表),例如: "
428426
429427#: ../../tutorial/introduction.rst:467
430428msgid "First Steps Towards Programming"
@@ -437,7 +435,7 @@ msgid ""
437435"`Fibonacci series <https://en.wikipedia.org/wiki/Fibonacci_number>`_ as "
438436"follows::"
439437msgstr ""
440- "当然,Python 还可以完成更复杂的任务,不仅仅是二加二 。 例如,可以编写 `斐波那契数列 "
438+ "当然,Python 还可以完成比二加二更复杂的任务 。 例如,可以编写 `斐波那契数列 "
441439"<https://en.wikipedia.org/wiki/Fibonacci_number>`_ 的初始子序列,如下所示:"
442440
443441#: ../../tutorial/introduction.rst:489
@@ -452,8 +450,8 @@ msgid ""
452450"all evaluated first before any of the assignments take place. The right-"
453451"hand side expressions are evaluated from the left to the right."
454452msgstr ""
455- "第一行含有一个 *多重赋值*: 变量 ``a`` 和 ``b`` 同时得到了新值 0 和 1. 最后一行又用了一次多重赋值, "
456- "这体现出了右手边的表达式,在任何赋值发生之前就被求值了。右手边的表达式是从左到右被求值的 。"
453+ "第一行中的 *多重赋值*: 变量 ``a`` 和 ``b`` 同时获得新值 0 和 "
454+ "1。最后一行又用了一次多重赋值,这体现在右表达式在赋值前就已经求值了。右表达式求值顺序为从左到右 。"
457455
458456#: ../../tutorial/introduction.rst:497
459457msgid ""
@@ -466,10 +464,10 @@ msgid ""
466464"than), ``>`` (greater than), ``==`` (equal to), ``<=`` (less than or equal "
467465"to), ``>=`` (greater than or equal to) and ``!=`` (not equal to)."
468466msgstr ""
469- ":keyword:`while` 循环只要它的条件 (这里指: ``a < 10``)保持为真就会一直执行。Python 和 C "
470- "一样,任何非零整数都为真; 零为假。这个条件也可以是字符串或是列表的值,事实上任何序列都可以 ;长度非零就为真,空序列就为假。在这个例子里,判断条件是一个简单的比较。标准的比较操作符的写法和 "
471- " C 语言里是一样 : ``<`` (小于)、 ``>`` (大于)、 ``==`` (等于)、 ``<=`` (小于或等于 )、 ``>=`` "
472- "(大于或等于)以及 ``!=`` (不等于)。"
467+ ":keyword:`while` 循环只要条件 (这里指:``a < 10``)保持为真就会一直执行。Python 和 C "
468+ "一样,任何非零整数都为真, 零为假。这个条件也可以是字符串或列表的值,事实上,任何序列都可以 ;长度非零就为真,空序列则为假。示例中的判断只是最简单的比较。比较操作符的标准写法和 "
469+ " C 语言一样 : ``<`` (小于)、 ``>`` (大于)、 ``==`` (等于)、 ``<=`` (小于等于 )、 ``>=`` (大于等于)及 "
470+ "``!=`` (不等于)。"
473471
474472#: ../../tutorial/introduction.rst:506
475473msgid ""
@@ -482,9 +480,9 @@ msgid ""
482480"(since the parser cannot guess when you have typed the last line). Note "
483481"that each line within a basic block must be indented by the same amount."
484482msgstr ""
485- "*循环体* 是 *缩进的* :缩进是 Python 组织语句的方式。在交互式命令行里,你得给每个缩进的行敲下 Tab "
486- "键或者(多个)空格键。实际上用文本编辑器的话,你要准备更复杂的输入方式;所有像样的文本编辑器都有自动缩进的设置。交互式命令行里,当一个组合的语句输入时 ,"
487- " 需要在最后敲一个空白行表示完成(因为语法分析器猜不出来你什么时候打的是最后一行 )。注意,在同一块语句中的每一行,都要缩进相同的长度 。"
483+ "*循环体* 是 *缩进的* :缩进是 Python "
484+ "组织语句的方式。在交互式命令行里,得为每个缩进行输入制表符或空格。使用文本编辑器可以实现更复杂的输入方式;所有像样的文本编辑器都支持自动缩进。交互式输入复合语句时 ,"
485+ " 要在最后输入空白行表示结束(因为解析器不知道哪一行代码是最后一行 )。注意,同一块语句的每一行的缩进相同 。"
488486
489487#: ../../tutorial/introduction.rst:515
490488msgid ""
@@ -495,14 +493,14 @@ msgid ""
495493"without quotes, and a space is inserted between items, so you can format "
496494"things nicely, like this::"
497495msgstr ""
498- ":func:`print` 函数将所有传进来的参数值打印出来. 它和直接输入你要显示的表达式(比如我们之前在计算器的例子里做的)不一样, print() "
499- " 能处理多个参数 ,包括浮点数, 字符串。 字符串会打印不带引号的内容, 并且在参数项之间会插入一个空格, 这样你就可以很好的把东西格式化, 像这样:: "
496+ ":func:`print` 函数输出给定参数的值。与表达式不同(比如,之前计算器的例子), "
497+ "它能处理多个参数 ,包括浮点数、 字符串。它输出的字符串不带引号,且各参数项之间会插入一个空格,这样可以实现更好的格式化操作: "
500498
501499#: ../../tutorial/introduction.rst:526
502500msgid ""
503501"The keyword argument *end* can be used to avoid the newline after the "
504502"output, or end the output with a different string::"
505- msgstr "关键字参数 *end* 可以用来取消输出后面的换行, 或是用另外一个字符串来结尾:: "
503+ msgstr "关键字参数 *end* 可以取消输出后面的换行, 或用另一个字符串结尾: "
506504
507505#: ../../tutorial/introduction.rst:538
508506msgid "Footnotes"
@@ -514,8 +512,8 @@ msgid ""
514512" as ``-(3**2)`` and thus result in ``-9``. To avoid this and get ``9``, you"
515513" can use ``(-3)**2``."
516514msgstr ""
517- "因为 ``**`` 比 ``-`` 有更高的优先级 , 所以 ``-3**2`` 会被解释成 ``-(3**2)`` ,因此结果是 ``-9``. "
518- "为了避免这个并且得到结果 ``9``, 你可以用这个式子 ``(-3)**2``. "
515+ "``**`` 比 ``-`` 的优先级更高 , 所以 ``-3**2`` 会被解释成 ``-(3**2)`` ,因此,结果是 ``-9``. "
516+ "要避免这个问题,并且得到 ``9``, 可以用 ``(-3)**2``。 "
519517
520518#: ../../tutorial/introduction.rst:543
521519msgid ""
@@ -524,5 +522,6 @@ msgid ""
524522"only difference between the two is that within single quotes you don't need "
525523"to escape ``\" `` (but you have to escape ``\\ '``) and vice versa."
526524msgstr ""
527- "和其他语言不一样的是, 特殊字符比如说 ``\\ n`` 在单引号 (``'...'``) 和双引号 (``\" ...\" ``) 里有一样的意义. "
528- "这两种引号唯一的区别是,你不需要在单引号里转义双引号 ``\" `` (但是你必须把单引号转义成 ``\\ '``) , 反之亦然."
525+ "和其他语言不一样,特殊字符如 ``\\ n`` "
526+ "在单引号(``'...'``)和双引号(``\" ...\" ``)里的意义一样。这两种引号唯一的区别是,不需要在单引号里转义双引号 "
527+ "``\" ``,但必须把单引号转义成 ``\\ '``,反之亦然。"
0 commit comments