@@ -11,7 +11,7 @@ msgstr ""
11
11
"Project-Id-Version : Python 3.5 TW\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"POT-Creation-Date : 2016-11-18 18:19-0600\n "
14
- "PO-Revision-Date : 2016-11-26 05:18 +0000\n "
14
+ "PO-Revision-Date : 2016-11-27 19:13 +0000\n "
15
15
"
Last-Translator :
Liang Bo Wang <[email protected] >\n "
16
16
"Language-Team : Chinese Traditional (http://www.transifex.com/python-tw-doc/python-35-tw/language/zh-Hant/)\n "
17
17
"MIME-Version : 1.0\n "
@@ -62,7 +62,7 @@ msgid ""
62
62
":keyword:`for` statement iterates over the items of any sequence (a list or "
63
63
"a string), in the order that they appear in the sequence. For example (no "
64
64
"pun intended):"
65
- msgstr "在 Python 中的 :keyword:`for` 陳述式可能不同於在 C 或 Pascal 中所看到的使用方式。與其永遠选代 (iterate) 一個數值的增遞運算 (如 Pascal),或給與使用者定義选代步進方式與結束條件(如 C),Python 的 :keyword:`for` 陳述选代任何序列(list 或者字串)的元素,以他們出現在序列中的順序。例如(無意雙關):\n\n::"
65
+ msgstr "在 Python 中的 :keyword:`for` 陳述式可能不同於在 C 或 Pascal 中所看到的使用方式。與其只能选代 (iterate) 一個等差級數 (如 Pascal),或給與使用者定義选代步進方式與結束條件(如 C),Python 的 :keyword:`for` 陳述选代任何序列(list 或者字串)的元素,以他們出現在序列中的順序。例如(無意雙關):\n\n::"
66
66
67
67
#: ../../tutorial/controlflow.rst:69
68
68
msgid ""
@@ -80,39 +80,39 @@ msgstr ":func:`range` 函式"
80
80
msgid ""
81
81
"If you do need to iterate over a sequence of numbers, the built-in function "
82
82
":func:`range` comes in handy. It generates arithmetic progressions::"
83
- msgstr ""
83
+ msgstr "如果你需要选代一個數列的話,使用內建 :func:`range` 函式就很方便。它可以生成一等差級數:\n\n:: "
84
84
85
85
#: ../../tutorial/controlflow.rst:99
86
86
msgid ""
87
87
"The given end point is never part of the generated sequence; ``range(10)`` "
88
88
"generates 10 values, the legal indices for items of a sequence of length 10."
89
89
" It is possible to let the range start at another number, or to specify a "
90
90
"different increment (even negative; sometimes this is called the 'step')::"
91
- msgstr ""
91
+ msgstr "給定的結束值永遠不會出現在生成的序列中; \\ ``range(10)`` 生成的 10 個數值,即對應存取一個長度為 10 的序列內每一個元素的索引值。也可以讓 range 從其他數值計數,或者給定不同的級距(甚至為負;有時稱之為 'step'):\n\n:: "
92
92
93
93
#: ../../tutorial/controlflow.rst:113
94
94
msgid ""
95
95
"To iterate over the indices of a sequence, you can combine :func:`range` and"
96
96
" :func:`len` as follows::"
97
- msgstr ""
97
+ msgstr "欲选代一個序列的索引值們,你可以搭配使用 :func:`range` 和 :func:`len` 如下:\n\n:: "
98
98
99
99
#: ../../tutorial/controlflow.rst:126
100
100
msgid ""
101
101
"In most such cases, however, it is convenient to use the :func:`enumerate` "
102
102
"function, see :ref:`tut-loopidioms`."
103
- msgstr ""
103
+ msgstr "然而,在多數的情況,使用 :func:`enumerate` 函式將更為方便,詳見 \\ :ref:`tut-loopidioms`。 "
104
104
105
105
#: ../../tutorial/controlflow.rst:129
106
106
msgid "A strange thing happens if you just print a range::"
107
- msgstr ""
107
+ msgstr "如果直接印出一個 range 則會出現奇怪的輸出:\n\n:: "
108
108
109
109
#: ../../tutorial/controlflow.rst:134
110
110
msgid ""
111
111
"In many ways the object returned by :func:`range` behaves as if it is a "
112
112
"list, but in fact it isn't. It is an object which returns the successive "
113
113
"items of the desired sequence when you iterate over it, but it doesn't "
114
114
"really make the list, thus saving space."
115
- msgstr ""
115
+ msgstr "在很多情況下,由 :func:`range` 回傳的物件的行為如同一個 list,但實際上它並不是。它是一個物件在你选代時會回傳想要的序列的連續元素,並不會真正建出這個序列的 list,以節省空間。 "
116
116
117
117
#: ../../tutorial/controlflow.rst:139
118
118
msgid ""
@@ -121,25 +121,25 @@ msgid ""
121
121
"successive items until the supply is exhausted. We have seen that the "
122
122
":keyword:`for` statement is such an *iterator*. The function :func:`list` is"
123
123
" another; it creates lists from iterables::"
124
- msgstr ""
124
+ msgstr "我們稱這樣的物件為 *iterable* \\ (可选代的),意即能作為函式、陳述式中能一直獲取連續元素直到用盡的部件。我們已經看過 :keyword:`for` 陳述式可做為如此的 *iterator* \\ (选代器)。:func:`list` 函式為另一個例子,他可以自 iterable(可选代物件)建立 list:\n\n:: "
125
125
126
126
#: ../../tutorial/controlflow.rst:149
127
127
msgid ""
128
128
"Later we will see more functions that return iterables and take iterables as"
129
129
" argument."
130
- msgstr ""
130
+ msgstr "待會我們可以看到更多函式回傳 iterable 和接受 iterable 為引數。 "
131
131
132
132
#: ../../tutorial/controlflow.rst:155
133
133
msgid ""
134
134
":keyword:`break` and :keyword:`continue` Statements, and :keyword:`else` "
135
135
"Clauses on Loops"
136
- msgstr ""
136
+ msgstr ":keyword:`break` 和 :keyword:`continue` 陳述、迴圈內 :keyword:`else` 段落 "
137
137
138
138
#: ../../tutorial/controlflow.rst:157
139
139
msgid ""
140
140
"The :keyword:`break` statement, like in C, breaks out of the smallest "
141
141
"enclosing :keyword:`for` or :keyword:`while` loop."
142
- msgstr ""
142
+ msgstr ":keyword:`break` 陳述式,如 C 語言,跳脫最內層的 :keyword:`for` 或 :keyword:`while` 迴圈。 "
143
143
144
144
#: ../../tutorial/controlflow.rst:160
145
145
msgid ""
0 commit comments