@@ -114,18 +114,18 @@ msgstr ""
114
114
115
115
#: ../../library/stdtypes.rst:78
116
116
msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"
117
- msgstr ""
117
+ msgstr "Boolean(布林)運算 --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not` "
118
118
119
119
#: ../../library/stdtypes.rst:82
120
120
msgid "These are the Boolean operations, ordered by ascending priority:"
121
- msgstr ""
121
+ msgstr "下方為 Boolean 運算,按優先順序排序: "
122
122
123
123
#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:143
124
124
#: ../../library/stdtypes.rst:275 ../../library/stdtypes.rst:363
125
125
#: ../../library/stdtypes.rst:413 ../../library/stdtypes.rst:961
126
126
#: ../../library/stdtypes.rst:1166
127
127
msgid "Operation"
128
- msgstr ""
128
+ msgstr "運算 "
129
129
130
130
#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:275
131
131
#: ../../library/stdtypes.rst:363 ../../library/stdtypes.rst:413
@@ -146,7 +146,7 @@ msgstr "``x or y``"
146
146
147
147
#: ../../library/stdtypes.rst:87
148
148
msgid "if *x* is true, then *x*, else *y*"
149
- msgstr ""
149
+ msgstr "假如 *x* 為真,則 *x*,否則 *y* "
150
150
151
151
#: ../../library/stdtypes.rst:87 ../../library/stdtypes.rst:285
152
152
#: ../../library/stdtypes.rst:963 ../../library/stdtypes.rst:966
@@ -161,7 +161,7 @@ msgstr "``x and y``"
161
161
162
162
#: ../../library/stdtypes.rst:90
163
163
msgid "if *x* is false, then *x*, else *y*"
164
- msgstr ""
164
+ msgstr "假如 *x* 為假,則 *x*,否則 *y* "
165
165
166
166
#: ../../library/stdtypes.rst:90 ../../library/stdtypes.rst:288
167
167
#: ../../library/stdtypes.rst:308 ../../library/stdtypes.rst:1205
@@ -176,7 +176,7 @@ msgstr "``not x``"
176
176
177
177
#: ../../library/stdtypes.rst:93
178
178
msgid "if *x* is false, then ``True``, else ``False``"
179
- msgstr ""
179
+ msgstr "假如 *x* 為假,則 ``True``,否則 ``False`` "
180
180
181
181
#: ../../library/stdtypes.rst:93 ../../library/stdtypes.rst:975
182
182
#: ../../library/stdtypes.rst:1208 ../../library/stdtypes.rst:2430
@@ -199,22 +199,28 @@ msgid ""
199
199
"This is a short-circuit operator, so it only evaluates the second argument "
200
200
"if the first one is false."
201
201
msgstr ""
202
+ "這是一個短路運算子,所以他只有在第一個變數為假時,"
203
+ "才會對第二個變數求值。"
202
204
203
205
#: ../../library/stdtypes.rst:109
204
206
msgid ""
205
207
"This is a short-circuit operator, so it only evaluates the second argument "
206
208
"if the first one is true."
207
209
msgstr ""
210
+ "這是一個短路運算子,所以他只有在第一個變數為真時,"
211
+ "才會對第二個變數求值。"
208
212
209
213
#: ../../library/stdtypes.rst:113
210
214
msgid ""
211
215
"``not`` has a lower priority than non-Boolean operators, so ``not a == b`` "
212
216
"is interpreted as ``not (a == b)``, and ``a == not b`` is a syntax error."
213
217
msgstr ""
218
+ "``not`` 比非 Boolean 運算子有較低的優先權,因此 ``not a == b`` "
219
+ "可直譯為 ``not (a == b)``,而 ``a == not b`` 會導致語法錯誤。"
214
220
215
221
#: ../../library/stdtypes.rst:120
216
222
msgid "Comparisons"
217
- msgstr ""
223
+ msgstr "比較運算 "
218
224
219
225
#: ../../library/stdtypes.rst:134
220
226
msgid ""
@@ -224,80 +230,85 @@ msgid ""
224
230
"< y and y <= z``, except that *y* is evaluated only once (but in both cases "
225
231
"*z* is not evaluated at all when ``x < y`` is found to be false)."
226
232
msgstr ""
233
+ "在 Python 裡共有 8 種比較運算。他們的優先順序都相同"
234
+ "(皆優先於 Boolean 運算)。比較運算"
235
+ "可以任意的串連;例如,``x < y <= z`` 等同於 "
236
+ "``x < y and y <= z``,差異只在於前者的 *y* 只有被求值一次(但在這兩個例子"
237
+ "中,當 ``x < y`` 為假時,*z* 皆不會被求值)。"
227
238
228
239
#: ../../library/stdtypes.rst:140
229
240
msgid "This table summarizes the comparison operations:"
230
- msgstr ""
241
+ msgstr "這個表格統整所有比較運算: "
231
242
232
243
#: ../../library/stdtypes.rst:143 ../../library/stdtypes.rst:2393
233
244
#: ../../library/stdtypes.rst:2416 ../../library/stdtypes.rst:3611
234
245
#: ../../library/stdtypes.rst:3634
235
246
msgid "Meaning"
236
- msgstr ""
247
+ msgstr "含義 "
237
248
238
249
#: ../../library/stdtypes.rst:145
239
250
msgid "``<``"
240
251
msgstr "``<``"
241
252
242
253
#: ../../library/stdtypes.rst:145
243
254
msgid "strictly less than"
244
- msgstr ""
255
+ msgstr "小於 "
245
256
246
257
#: ../../library/stdtypes.rst:147
247
258
msgid "``<=``"
248
259
msgstr "``<=``"
249
260
250
261
#: ../../library/stdtypes.rst:147
251
262
msgid "less than or equal"
252
- msgstr ""
263
+ msgstr "小於等於 "
253
264
254
265
#: ../../library/stdtypes.rst:149
255
266
msgid "``>``"
256
267
msgstr "``>``"
257
268
258
269
#: ../../library/stdtypes.rst:149
259
270
msgid "strictly greater than"
260
- msgstr ""
271
+ msgstr "大於 "
261
272
262
273
#: ../../library/stdtypes.rst:151
263
274
msgid "``>=``"
264
275
msgstr "``>=``"
265
276
266
277
#: ../../library/stdtypes.rst:151
267
278
msgid "greater than or equal"
268
- msgstr ""
279
+ msgstr "大於等於 "
269
280
270
281
#: ../../library/stdtypes.rst:153
271
282
msgid "``==``"
272
283
msgstr "``==``"
273
284
274
285
#: ../../library/stdtypes.rst:153
275
286
msgid "equal"
276
- msgstr ""
287
+ msgstr "等於 "
277
288
278
289
#: ../../library/stdtypes.rst:155
279
290
msgid "``!=``"
280
291
msgstr "``!=``"
281
292
282
293
#: ../../library/stdtypes.rst:155
283
294
msgid "not equal"
284
- msgstr ""
295
+ msgstr "不等於 "
285
296
286
297
#: ../../library/stdtypes.rst:157
287
298
msgid "``is``"
288
299
msgstr "``is``"
289
300
290
301
#: ../../library/stdtypes.rst:157
291
302
msgid "object identity"
292
- msgstr ""
303
+ msgstr "物件識別 "
293
304
294
305
#: ../../library/stdtypes.rst:159
295
306
msgid "``is not``"
296
307
msgstr "``is not``"
297
308
298
309
#: ../../library/stdtypes.rst:159
299
310
msgid "negated object identity"
300
- msgstr ""
311
+ msgstr "否定的物件識別 "
301
312
302
313
#: ../../library/stdtypes.rst:166
303
314
msgid ""
@@ -308,12 +319,20 @@ msgid ""
308
319
"example, they raise a :exc:`TypeError` exception when one of the arguments "
309
320
"is a complex number."
310
321
msgstr ""
322
+ "除了不同的數字型別外,不同型別的物件不能進行相等比較。"
323
+ "運算子 ``==`` 總有定義,但在某些物件類型(例如, "
324
+ "class 物件)時,運算子會等同於 :keyword:`is`。 其他運算子 ``<``、``<=``、"
325
+ "``>`` 及 ``>=`` 皆僅在有意義的部分有所定義;例如,"
326
+ "當其中一個引數為複數時,"
327
+ "將引發一個 :exc:`TypeError` 的例外。"
311
328
312
329
#: ../../library/stdtypes.rst:180
313
330
msgid ""
314
331
"Non-identical instances of a class normally compare as non-equal unless the "
315
332
"class defines the :meth:`~object.__eq__` method."
316
333
msgstr ""
334
+ "一個 class 的非相同實例通常會比較為不相等,除非 "
335
+ "class 有定義 :meth:`~object.__eq__` method。"
317
336
318
337
#: ../../library/stdtypes.rst:183
319
338
msgid ""
@@ -324,20 +343,32 @@ msgid ""
324
343
"meth:`~object.__eq__` are sufficient, if you want the conventional meanings "
325
344
"of the comparison operators)."
326
345
msgstr ""
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
+ "常規意義上的比較運算子)。"
327
352
328
353
#: ../../library/stdtypes.rst:190
329
354
msgid ""
330
355
"The behavior of the :keyword:`is` and :keyword:`is not` operators cannot be "
331
356
"customized; also they can be applied to any two objects and never raise an "
332
357
"exception."
333
358
msgstr ""
359
+ "無法自定義 :keyword:`is` 與 :keyword:`is not` 運算子的行為"
360
+ ";這兩個運算子也可以運用在任意兩個物件且不會導致"
361
+ "例外。"
334
362
335
363
#: ../../library/stdtypes.rst:198
336
364
msgid ""
337
365
"Two more operations with the same syntactic priority, :keyword:`in` and :"
338
366
"keyword:`not in`, are supported by types that are :term:`iterable` or "
339
367
"implement the :meth:`__contains__` method."
340
368
msgstr ""
369
+ "此外,擁有相同的語法優先序的 :keyword:`in` 及 :keyword:`not in` 兩種運算"
370
+ "皆被是 :term:`iterable` 或者"
371
+ "有實作 :meth:`__contains__` method 的型別所支援。"
341
372
342
373
#: ../../library/stdtypes.rst:205
343
374
msgid "Numeric Types --- :class:`int`, :class:`float`, :class:`complex`"
0 commit comments