@@ -114,18 +114,18 @@ msgstr ""
114114
115115#: ../../library/stdtypes.rst:78
116116msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"
117- msgstr ""
117+ msgstr "Boolean(布林)運算 --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not` "
118118
119119#: ../../library/stdtypes.rst:82
120120msgid "These are the Boolean operations, ordered by ascending priority:"
121- msgstr ""
121+ msgstr "下方為 Boolean 運算,按優先順序排序: "
122122
123123#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:143
124124#: ../../library/stdtypes.rst:275 ../../library/stdtypes.rst:363
125125#: ../../library/stdtypes.rst:413 ../../library/stdtypes.rst:961
126126#: ../../library/stdtypes.rst:1166
127127msgid "Operation"
128- msgstr ""
128+ msgstr "運算 "
129129
130130#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:275
131131#: ../../library/stdtypes.rst:363 ../../library/stdtypes.rst:413
@@ -146,7 +146,7 @@ msgstr "``x or y``"
146146
147147#: ../../library/stdtypes.rst:87
148148msgid "if *x* is true, then *x*, else *y*"
149- msgstr ""
149+ msgstr "假如 *x* 為真,則 *x*,否則 *y* "
150150
151151#: ../../library/stdtypes.rst:87 ../../library/stdtypes.rst:285
152152#: ../../library/stdtypes.rst:963 ../../library/stdtypes.rst:966
@@ -161,7 +161,7 @@ msgstr "``x and y``"
161161
162162#: ../../library/stdtypes.rst:90
163163msgid "if *x* is false, then *x*, else *y*"
164- msgstr ""
164+ msgstr "假如 *x* 為假,則 *x*,否則 *y* "
165165
166166#: ../../library/stdtypes.rst:90 ../../library/stdtypes.rst:288
167167#: ../../library/stdtypes.rst:308 ../../library/stdtypes.rst:1205
@@ -176,7 +176,7 @@ msgstr "``not x``"
176176
177177#: ../../library/stdtypes.rst:93
178178msgid "if *x* is false, then ``True``, else ``False``"
179- msgstr ""
179+ msgstr "假如 *x* 為假,則 ``True``,否則 ``False`` "
180180
181181#: ../../library/stdtypes.rst:93 ../../library/stdtypes.rst:975
182182#: ../../library/stdtypes.rst:1208 ../../library/stdtypes.rst:2430
@@ -199,22 +199,28 @@ msgid ""
199199"This is a short-circuit operator, so it only evaluates the second argument "
200200"if the first one is false."
201201msgstr ""
202+ "這是一個短路運算子,所以他只有在第一個變數為假時,"
203+ "才會對第二個變數求值。"
202204
203205#: ../../library/stdtypes.rst:109
204206msgid ""
205207"This is a short-circuit operator, so it only evaluates the second argument "
206208"if the first one is true."
207209msgstr ""
210+ "這是一個短路運算子,所以他只有在第一個變數為真時,"
211+ "才會對第二個變數求值。"
208212
209213#: ../../library/stdtypes.rst:113
210214msgid ""
211215"``not`` has a lower priority than non-Boolean operators, so ``not a == b`` "
212216"is interpreted as ``not (a == b)``, and ``a == not b`` is a syntax error."
213217msgstr ""
218+ "``not`` 比非 Boolean 運算子有較低的優先權,因此 ``not a == b`` "
219+ "可直譯為 ``not (a == b)``,而 ``a == not b`` 會導致語法錯誤。"
214220
215221#: ../../library/stdtypes.rst:120
216222msgid "Comparisons"
217- msgstr ""
223+ msgstr "比較運算 "
218224
219225#: ../../library/stdtypes.rst:134
220226msgid ""
@@ -224,80 +230,85 @@ msgid ""
224230"< y and y <= z``, except that *y* is evaluated only once (but in both cases "
225231"*z* is not evaluated at all when ``x < y`` is found to be false)."
226232msgstr ""
233+ "在 Python 裡共有 8 種比較運算。他們的優先順序都相同"
234+ "(皆優先於 Boolean 運算)。比較運算"
235+ "可以任意的串連;例如,``x < y <= z`` 等同於 "
236+ "``x < y and y <= z``,差異只在於前者的 *y* 只有被求值一次(但在這兩個例子"
237+ "中,當 ``x < y`` 為假時,*z* 皆不會被求值)。"
227238
228239#: ../../library/stdtypes.rst:140
229240msgid "This table summarizes the comparison operations:"
230- msgstr ""
241+ msgstr "這個表格統整所有比較運算: "
231242
232243#: ../../library/stdtypes.rst:143 ../../library/stdtypes.rst:2393
233244#: ../../library/stdtypes.rst:2416 ../../library/stdtypes.rst:3611
234245#: ../../library/stdtypes.rst:3634
235246msgid "Meaning"
236- msgstr ""
247+ msgstr "含義 "
237248
238249#: ../../library/stdtypes.rst:145
239250msgid "``<``"
240251msgstr "``<``"
241252
242253#: ../../library/stdtypes.rst:145
243254msgid "strictly less than"
244- msgstr ""
255+ msgstr "小於 "
245256
246257#: ../../library/stdtypes.rst:147
247258msgid "``<=``"
248259msgstr "``<=``"
249260
250261#: ../../library/stdtypes.rst:147
251262msgid "less than or equal"
252- msgstr ""
263+ msgstr "小於等於 "
253264
254265#: ../../library/stdtypes.rst:149
255266msgid "``>``"
256267msgstr "``>``"
257268
258269#: ../../library/stdtypes.rst:149
259270msgid "strictly greater than"
260- msgstr ""
271+ msgstr "大於 "
261272
262273#: ../../library/stdtypes.rst:151
263274msgid "``>=``"
264275msgstr "``>=``"
265276
266277#: ../../library/stdtypes.rst:151
267278msgid "greater than or equal"
268- msgstr ""
279+ msgstr "大於等於 "
269280
270281#: ../../library/stdtypes.rst:153
271282msgid "``==``"
272283msgstr "``==``"
273284
274285#: ../../library/stdtypes.rst:153
275286msgid "equal"
276- msgstr ""
287+ msgstr "等於 "
277288
278289#: ../../library/stdtypes.rst:155
279290msgid "``!=``"
280291msgstr "``!=``"
281292
282293#: ../../library/stdtypes.rst:155
283294msgid "not equal"
284- msgstr ""
295+ msgstr "不等於 "
285296
286297#: ../../library/stdtypes.rst:157
287298msgid "``is``"
288299msgstr "``is``"
289300
290301#: ../../library/stdtypes.rst:157
291302msgid "object identity"
292- msgstr ""
303+ msgstr "物件識別 "
293304
294305#: ../../library/stdtypes.rst:159
295306msgid "``is not``"
296307msgstr "``is not``"
297308
298309#: ../../library/stdtypes.rst:159
299310msgid "negated object identity"
300- msgstr ""
311+ msgstr "否定的物件識別 "
301312
302313#: ../../library/stdtypes.rst:166
303314msgid ""
@@ -308,12 +319,20 @@ msgid ""
308319"example, they raise a :exc:`TypeError` exception when one of the arguments "
309320"is a complex number."
310321msgstr ""
322+ "除了不同的數字型別外,不同型別的物件不能進行相等比較。"
323+ "運算子 ``==`` 總有定義,但在某些物件類型(例如, "
324+ "class 物件)時,運算子會等同於 :keyword:`is`。 其他運算子 ``<``、``<=``、"
325+ "``>`` 及 ``>=`` 皆僅在有意義的部分有所定義;例如,"
326+ "當其中一個引數為複數時,"
327+ "將引發一個 :exc:`TypeError` 的例外。"
311328
312329#: ../../library/stdtypes.rst:180
313330msgid ""
314331"Non-identical instances of a class normally compare as non-equal unless the "
315332"class defines the :meth:`~object.__eq__` method."
316333msgstr ""
334+ "一個 class 的非相同實例通常會比較為不相等,除非 "
335+ "class 有定義 :meth:`~object.__eq__` method。"
317336
318337#: ../../library/stdtypes.rst:183
319338msgid ""
@@ -324,20 +343,32 @@ msgid ""
324343"meth:`~object.__eq__` are sufficient, if you want the conventional meanings "
325344"of the comparison operators)."
326345msgstr ""
346+ "一個 class 的實例不可以與其他相同 class 的實例"
347+ "或其他物件的類別進行排序,除非 class 定義足夠的"
348+ " method ,包含 :meth:`~object.__lt__`、:meth:`~object.__le__`、:meth:`~object."
349+ "__gt__` 及 :meth:`~object.__ge__`\\ (一般來說,使用 :meth:`~object.__lt__` 及 :"
350+ "meth:`~object.__eq__` 就可以滿足"
351+ "常規意義上的比較運算子)。"
327352
328353#: ../../library/stdtypes.rst:190
329354msgid ""
330355"The behavior of the :keyword:`is` and :keyword:`is not` operators cannot be "
331356"customized; also they can be applied to any two objects and never raise an "
332357"exception."
333358msgstr ""
359+ "無法自定義 :keyword:`is` 與 :keyword:`is not` 運算子的行為"
360+ ";這兩個運算子也可以運用在任意兩個物件且不會導致"
361+ "例外。"
334362
335363#: ../../library/stdtypes.rst:198
336364msgid ""
337365"Two more operations with the same syntactic priority, :keyword:`in` and :"
338366"keyword:`not in`, are supported by types that are :term:`iterable` or "
339367"implement the :meth:`__contains__` method."
340368msgstr ""
369+ "此外,擁有相同的語法優先序的 :keyword:`in` 及 :keyword:`not in` 兩種運算"
370+ "皆被是 :term:`iterable` 或者"
371+ "有實作 :meth:`__contains__` method 的型別所支援。"
341372
342373#: ../../library/stdtypes.rst:205
343374msgid "Numeric Types --- :class:`int`, :class:`float`, :class:`complex`"
0 commit comments