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

Skip to content

Commit 9db827e

Browse files
[po] auto sync
1 parent b64c657 commit 9db827e

2 files changed

Lines changed: 28 additions & 27 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.02%", "updated_at": "2023-08-17T07:56:58Z"}
1+
{"translation": "90.02%", "updated_at": "2023-08-17T08:57:19Z"}

tutorial/controlflow.po

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414
# Dai Xu <[email protected]>, 2023
1515
# cissoid <[email protected]>, 2023
1616
# Freesand Leo <[email protected]>, 2023
17+
# 乐成 王, 2023
1718
#
1819
#, fuzzy
1920
msgid ""
2021
msgstr ""
2122
"Project-Id-Version: Python 3.12\n"
2223
"Report-Msgid-Bugs-To: \n"
23-
"POT-Creation-Date: 2023-07-29 02:08+0000\n"
24+
"POT-Creation-Date: 2023-08-11 14:13+0000\n"
2425
"PO-Revision-Date: 2021-06-28 01:50+0000\n"
25-
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
26+
"Last-Translator: 乐成 王, 2023\n"
2627
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2728
"MIME-Version: 1.0\n"
2829
"Content-Type: text/plain; charset=UTF-8\n"
@@ -32,13 +33,13 @@ msgstr ""
3233

3334
#: ../../tutorial/controlflow.rst:5
3435
msgid "More Control Flow Tools"
35-
msgstr "其他流程控制工具"
36+
msgstr "更多控制流工具"
3637

3738
#: ../../tutorial/controlflow.rst:7
3839
msgid ""
3940
"As well as the :keyword:`while` statement just introduced, Python uses a few"
4041
" more that we will encounter in this chapter."
41-
msgstr "除了刚引入的 :keyword:`while` 语句,Python 还使用了一些其他语法,我们将在本章节中接触到它们。"
42+
msgstr "除了刚介绍的 :keyword:`while` 语句,Python 还用了一些别的。我们将在本章中遇到它们。"
4243

4344
#: ../../tutorial/controlflow.rst:14
4445
msgid ":keyword:`!if` Statements"
@@ -48,7 +49,7 @@ msgstr ":keyword:`!if` 语句"
4849
msgid ""
4950
"Perhaps the most well-known statement type is the :keyword:`if` statement. "
5051
"For example::"
51-
msgstr "最让人耳熟能详的应该是 :keyword:`if` 语句。例如:"
52+
msgstr "最令人耳熟能详的应该是 :keyword:`if` 语句,如:"
5253

5354
#: ../../tutorial/controlflow.rst:33
5455
msgid ""
@@ -58,18 +59,17 @@ msgid ""
5859
":keyword:`!elif` ... :keyword:`!elif` ... sequence is a substitute for the "
5960
"``switch`` or ``case`` statements found in other languages."
6061
msgstr ""
61-
"if 语句包含零个或多个 :keyword:`elif` 子句及可选的 :keyword:`else` 子句。关键字 "
62-
"':keyword:`!elif`' 是 'else if' 的缩写,适用于避免过多的缩进。:keyword:`!if` ... "
63-
":keyword:`!elif` ... :keyword:`!elif` ... 序列可以当作其他语言中 ``switch`` 或 ``case`` "
64-
"语句的替代品。"
62+
"可有零个或多个 :keyword:`elif` 部分,:keyword:`else` 部分也是可选的。关键字 ':keyword:`!elif`' 是 "
63+
"'else if' 的缩写,用于避免过多的缩进。:keyword:`!if` ... :keyword:`!elif` ... "
64+
":keyword:`!elif` ... 序列可以当作其它语言中 ``switch`` 或 ``case`` 语句的替代品。"
6565

6666
#: ../../tutorial/controlflow.rst:39
6767
msgid ""
6868
"If you're comparing the same value to several constants, or checking for "
6969
"specific types or attributes, you may also find the :keyword:`!match` "
7070
"statement useful. For more details see :ref:`tut-match`."
7171
msgstr ""
72-
"如果要把一个值与多个常量进行比较,或者检查特定类型或属性,:keyword:`!match` 语句更实用。详见 :ref:`tut-match`。"
72+
"如果是把一个值与多个常量进行比较,或者检查特定类型或属性,:keyword:`!match` 语句更有用。详见 :ref:`tut-match`。"
7373

7474
#: ../../tutorial/controlflow.rst:46
7575
msgid ":keyword:`!for` Statements"
@@ -86,15 +86,15 @@ msgid ""
8686
"pun intended):"
8787
msgstr ""
8888
"Python 的 :keyword:`for` 语句与 C 或 Pascal 中的不同。Python 的 :keyword:`!for` "
89-
"语句不迭代算术递增数值(如 Pascal),或是给予用户定义迭代步骤和暂停条件的能力(如 "
90-
"C),而是迭代列表或字符串等任意序列,元素的迭代顺序与在序列中出现的顺序一致。 例如:"
89+
"语句不迭代算术递增数值(如 Pascal),或是给予用户定义迭代步骤和结束条件的能力(如 "
90+
"C),而是在列表或字符串等任意序列的元素上迭代,按它们在序列中出现的顺序。 例如(这不是有意要暗指什么):"
9191

9292
#: ../../tutorial/controlflow.rst:72
9393
msgid ""
9494
"Code that modifies a collection while iterating over that same collection "
9595
"can be tricky to get right. Instead, it is usually more straight-forward to"
9696
" loop over a copy of the collection or to create a new collection::"
97-
msgstr "遍历集合时修改集合的内容,会很容易生成错误的结果。因此不能直接进行循环,而是应遍历该集合的副本或创建新的集合:"
97+
msgstr "很难正确地在迭代多项集的同时修改多项集的内容。更简单的方法是迭代多项集的副本或者创建新的多项集:"
9898

9999
#: ../../tutorial/controlflow.rst:94
100100
msgid "The :func:`range` Function"
@@ -104,7 +104,7 @@ msgstr ":func:`range` 函数"
104104
msgid ""
105105
"If you do need to iterate over a sequence of numbers, the built-in function "
106106
":func:`range` comes in handy. It generates arithmetic progressions::"
107-
msgstr "内置函数 :func:`range` 常用于遍历数字序列,该函数可以生成算术级数:"
107+
msgstr "内置函数 :func:`range` 用于生成等差数列:"
108108

109109
#: ../../tutorial/controlflow.rst:108
110110
msgid ""
@@ -113,24 +113,24 @@ msgid ""
113113
" It is possible to let the range start at another number, or to specify a "
114114
"different increment (even negative; sometimes this is called the 'step')::"
115115
msgstr ""
116-
"生成的序列不包含给定的终止数值;``range(10)`` 生成 10 个值,这是一个长度为 10 的序列,其中的元素索引都是合法的。range "
117-
"可以不从 0 开始,还可以按指定幅度递增(递增幅度称为 '步进',支持负数):"
116+
"生成的序列绝不会包括给定的终止值;``range(10)`` 生成 10 个值——长度为 10 的序列的所有合法索引。range 可以不从 0 "
117+
"开始,且可以按给定的步长递增(即使是负数步长):"
118118

119119
#: ../../tutorial/controlflow.rst:122
120120
msgid ""
121121
"To iterate over the indices of a sequence, you can combine :func:`range` and"
122122
" :func:`len` as follows::"
123-
msgstr ":func:`range` 和 :func:`len` 组合在一起,可以按索引迭代序列:"
123+
msgstr "要按索引迭代序列,可以组合使用 :func:`range` 和 :func:`len`:"
124124

125125
#: ../../tutorial/controlflow.rst:135
126126
msgid ""
127127
"In most such cases, however, it is convenient to use the :func:`enumerate` "
128128
"function, see :ref:`tut-loopidioms`."
129-
msgstr "不过,大多数情况下,:func:`enumerate` 函数更便捷,详见 :ref:`tut-loopidioms` 。"
129+
msgstr "不过大多数情况下 :func:`enumerate` 函数很方便,详见 :ref:`tut-loopidioms`。"
130130

131131
#: ../../tutorial/controlflow.rst:138
132132
msgid "A strange thing happens if you just print a range::"
133-
msgstr "如果只输出 range,会出现意想不到的结果:"
133+
msgstr "如果直接打印一个 range 会发生意想不到的事情:"
134134

135135
#: ../../tutorial/controlflow.rst:143
136136
msgid ""
@@ -140,7 +140,7 @@ msgid ""
140140
"really make the list, thus saving space."
141141
msgstr ""
142142
":func:`range` "
143-
"返回对象的操作和列表很像,但其实这两种对象不是一回事。迭代时,该对象基于所需序列返回连续项,并没有生成真正的列表,从而节省了空间。"
143+
"返回的对象在很多方面和列表的行为一样,但其实它和列表不一样。该对象只有在被迭代时才一个一个地返回所期望的列表项,并没有真正生成过一个含有全部项的列表,从而节省了空间。"
144144

145145
#: ../../tutorial/controlflow.rst:148
146146
msgid ""
@@ -150,16 +150,16 @@ msgid ""
150150
":keyword:`for` statement is such a construct, while an example of a function"
151151
" that takes an iterable is :func:`sum`::"
152152
msgstr ""
153-
"这种对象称为可迭代对象 :term:`iterable`,函数或程序结构可通过该对象获取连续项,直到所有元素全部迭代完毕。:keyword:`for` "
154-
"语句就是这样的架构,:func:`sum` 是一种把可迭代对象作为参数的函数:"
153+
"这种对象称为可迭代对象 :term:`iterable`,适合作为需要获取一系列值的函数或程序构件的参数。:keyword:`for` "
154+
"语句就是这样的程序构件;以可迭代对象作为参数的函数例如 :func:`sum`:"
155155

156156
#: ../../tutorial/controlflow.rst:157
157157
msgid ""
158158
"Later we will see more functions that return iterables and take iterables as"
159159
" arguments. In chapter :ref:`tut-structures`, we will discuss in more "
160160
"detail about :func:`list`."
161161
msgstr ""
162-
"下文将介绍更多返回可迭代对象或把可迭代对象当作参数的函数。 在 :ref:`tut-structures` 这一章节中,我们将讨论有关 "
162+
"之后我们会看到更多返回可迭代对象,或以可迭代对象作为参数的函数。在 :ref:`tut-structures` 这一章中,我们将讨论 "
163163
":func:`list` 的更多细节。"
164164

165165
#: ../../tutorial/controlflow.rst:164
@@ -184,7 +184,7 @@ msgstr ":keyword:`!for` 或 :keyword:`!while` 循环可以包括 :keyword:`!else
184184
msgid ""
185185
"In a :keyword:`for` loop, the :keyword:`!else` clause is executed after the "
186186
"loop reaches its final iteration."
187-
msgstr "在 :keyword:`for` 循环中,:keyword:`!else` 子句会在循环抵达最后一次迭代之后执行。"
187+
msgstr "在 :keyword:`for` 循环中,:keyword:`!else` 子句会在循环成功结束最后一次迭代之后执行。"
188188

189189
#: ../../tutorial/controlflow.rst:174
190190
msgid ""
@@ -196,13 +196,14 @@ msgstr "在 :keyword:`while` 循环中,它会在循环条件变为假值后执
196196
msgid ""
197197
"In either kind of loop, the :keyword:`!else` clause is **not** executed if "
198198
"the loop was terminated by a :keyword:`break`."
199-
msgstr "在这两种循环中,如果循环被 :keyword:`break` 终止,则 :keyword:`!else` 子句 **不会** 执行。"
199+
msgstr ""
200+
"在任意一种循环中,如果循环是因为 :keyword:`break` 而结束,则 :keyword:`!else` 子句 **不会** 执行。"
200201

201202
#: ../../tutorial/controlflow.rst:179
202203
msgid ""
203204
"This is exemplified in the following :keyword:`!for` loop, which searches "
204205
"for prime numbers::"
205-
msgstr "下面的 :keyword:`!for` 循环就是一个例子,其功能是搜索质数::"
206+
msgstr "下面的搜索质数的 :keyword:`!for` 循环就是一个例子"
206207

207208
#: ../../tutorial/controlflow.rst:200
208209
msgid ""

0 commit comments

Comments
 (0)