@@ -241,29 +241,28 @@ msgid "The module defines the following type:"
241
241
msgstr "這個模組定義了下方的型別:"
242
242
243
243
#: ../../library/array.rst:78
244
- #, fuzzy
245
244
msgid ""
246
245
"A new array whose items are restricted by *typecode*, and initialized from "
247
246
"the optional *initializer* value, which must be a :class:`bytes` or :class:"
248
247
"`bytearray` object, a Unicode string, or iterable over elements of the "
249
248
"appropriate type."
250
249
msgstr ""
251
- "一個新的陣列中的元素被 *typecode* 限制,並由選用的 *initializer*參數初始 "
252
- "化, \\ *initializer* 必須是一個list、 \\ :term :`bytes-like object` \\ (類位元 "
253
- "組串物件)或包含適當型別變數的可疊代物件 (iterable)。"
250
+ "一個新的陣列中的元素被 *typecode* 限制,並由選用的 *initializer*參數初始化, "
251
+ "*initializer* 必須是一個:class :`bytes` 或 :class:`bytearray` 物件、一個 "
252
+ "Unicode 字串或包含適當型別元素的可疊代物件 (iterable)。"
254
253
255
254
#: ../../library/array.rst:83
256
- #, fuzzy
257
255
msgid ""
258
256
"If given a :class:`bytes` or :class:`bytearray` object, the initializer is "
259
257
"passed to the new array's :meth:`frombytes` method; if given a Unicode "
260
258
"string, the initializer is passed to the :meth:`fromunicode` method; "
261
259
"otherwise, the initializer's iterator is passed to the :meth:`extend` method "
262
260
"to add initial items to the array."
263
261
msgstr ""
264
- "如果指定一個 list 或 string,新的陣列初始化時會傳入 :meth:`fromlist`\\ 、\\ :"
265
- "meth:`frombytes` 或 :meth:`fromunicode` 方法(參照下方)將元素新增到其中。其"
266
- "他情況時, 一個 iterable initializer 將被傳入 :meth:`extend` 方法之中。"
262
+ "如果給定的是一個 :class:`bytes` 或 :class:`bytearray` 物件,新的陣列初始化時"
263
+ "會傳入 :meth:`frombytes` 方法;如為 Unicode 字串則會傳入 :meth:`fromunicode` "
264
+ "方法;其他情況時, 一個 initializer 的可疊代物件將被傳入 :meth:`extend` 方法"
265
+ "之中來將初始項目新增至陣列。"
267
266
268
267
#: ../../library/array.rst:90
269
268
msgid ""
@@ -276,17 +275,17 @@ msgid ""
276
275
msgstr ""
277
276
"陣列支援常見的序列操作,包含索引 (indexing)、切片 (slicing)、串接 "
278
277
"(concatenation)、相乘 (multiplication) 等。當使用切片進行賦值時,賦值的陣列必"
279
- "須具備相同的 type code,其他型別的數值將導致 :exc:`TypeError`\\ 。陣列同時也 "
280
- "實作了緩衝區介面 ,可以在任何支援 :term:`bytes-like objects <bytes-like "
281
- "object>` 的地方使用。"
278
+ "須具備相同的 type code,其他型別的數值將導致 :exc:`TypeError`。陣列同時也實作 "
279
+ "了緩衝區介面 ,可以在任何支援 :term:`bytes-like objects <bytes-like object>` "
280
+ "的地方使用。"
282
281
283
282
#: ../../library/array.rst:96
284
283
msgid ""
285
284
"Raises an :ref:`auditing event <auditing>` ``array.__new__`` with arguments "
286
285
"``typecode``, ``initializer``."
287
286
msgstr ""
288
287
"引發\\ :ref:`稽核事件 (auditing event) <auditing>` ``array.__new__`` 並帶入引"
289
- "數 ``typecode``\\ 、 \\ ``initializer``\\ 。"
288
+ "數 ``typecode``、 ``initializer``。"
290
289
291
290
#: ../../library/array.rst:101
292
291
msgid "The typecode character used to create the array."
@@ -337,8 +336,8 @@ msgid ""
337
336
"written on a machine with a different byte order."
338
337
msgstr ""
339
338
"\" Byteswap\" 所有陣列中的物件。這只有支援物件長度為 1、2、4 或 8 位元組的陣"
340
- "列,其他型別的值會導致 :exc:`RuntimeError`\\ 。這在從機器讀取位元順序不同的檔 "
341
- "案時很有用 。"
339
+ "列,其他型別的值會導致 :exc:`RuntimeError`。這在從機器讀取位元順序不同的檔案 "
340
+ "時很有用 。"
342
341
343
342
#: ../../library/array.rst:143
344
343
msgid "Return the number of occurrences of *x* in the array."
@@ -352,23 +351,22 @@ msgid ""
352
351
"iterable and its elements must be the right type to be appended to the array."
353
352
msgstr ""
354
353
"從 *iterable* 中新增元素到陣列的尾端,如果 *iterable* 是另一個陣列,它必須有"
355
- "完全相同的 type code,如果不同會導致 :exc:`TypeError`\\ 。如果 *iterable*不 "
356
- "是一個陣列 ,它必須可以被疊代 (iterable)且其中的元素必須是可以被加入陣列中的 "
357
- "正確型別 。"
354
+ "完全相同的 type code,如果不同會導致 :exc:`TypeError`。如果 *iterable*不是一 "
355
+ "個陣列 ,它必須可以被疊代 (iterable)且其中的元素必須是可以被加入陣列中的正確 "
356
+ "型別 。"
358
357
359
358
#: ../../library/array.rst:156
360
- #, fuzzy
361
359
msgid ""
362
360
"Appends items from the :term:`bytes-like object`, interpreting its content "
363
361
"as an array of machine values (as if it had been read from a file using the :"
364
362
"meth:`fromfile` method)."
365
363
msgstr ""
366
- "從字串中新增元素。讀取時會將字串當作一個機器數值組成的陣列(就像從檔案中使 "
367
- "用 :meth:`fromfile` 方法讀出的資料)。"
364
+ "從 :term:`bytes-like object` 中新增元素。讀取時會將其內容當作一個機器數值組成 "
365
+ "的陣列(就像從檔案中使用 :meth:`fromfile` 方法讀出的資料)。"
368
366
369
367
#: ../../library/array.rst:160
370
368
msgid ":meth:`!fromstring` is renamed to :meth:`frombytes` for clarity."
371
- msgstr "將 :meth:`!fromstring` 更名為 :meth:`frombytes`\\ ,使其更加清晰易懂。"
369
+ msgstr "將 :meth:`!fromstring` 更名為 :meth:`frombytes`,使其更加清晰易懂。"
372
370
373
371
#: ../../library/array.rst:166
374
372
msgid ""
@@ -378,27 +376,26 @@ msgid ""
378
376
"inserted into the array."
379
377
msgstr ""
380
378
"從 :term:`file object` *f* 讀取 *n* 個元素(作為機器數值),接著將這些元素加"
381
- "入陣列的最尾端。如果只有少於 *n* 個有效的元素會導致 :exc:`EOFError`\\ ,但有 "
382
- "效的元素仍然會被加入陣列中 。"
379
+ "入陣列的最尾端。如果只有少於 *n* 個有效的元素會導致 :exc:`EOFError`,但有效的 "
380
+ "元素仍然會被加入陣列中 。"
383
381
384
382
#: ../../library/array.rst:174
385
383
msgid ""
386
384
"Append items from the list. This is equivalent to ``for x in list: a."
387
385
"append(x)`` except that if there is a type error, the array is unchanged."
388
386
msgstr ""
389
- "從 list 中新增元素。這等價於 ``for x in list: a.append(x)``\\ ,除了有型別錯 "
390
- "誤產生時 ,陣列會保持原狀不會被更改。"
387
+ "從 list 中新增元素。這等價於 ``for x in list: a.append(x)``,除了有型別錯誤產 "
388
+ "生時 ,陣列會保持原狀不會被更改。"
391
389
392
390
#: ../../library/array.rst:180
393
- #, fuzzy
394
391
msgid ""
395
392
"Extends this array with data from the given Unicode string. The array must "
396
393
"have type code ``'u'``; otherwise a :exc:`ValueError` is raised. Use ``array."
397
394
"frombytes(unicodestring.encode(enc))`` to append Unicode data to an array of "
398
395
"some other type."
399
396
msgstr ""
400
- "用給定的unicode 字串擴展這個陣列。陣列必須是 ``u`` 型別的陣列;其他的型別會 "
401
- "導致 :exc:`ValueError`錯誤 。使用 ``array.frombytes(unicodestring."
397
+ "用給定的Unicode 字串擴展這個陣列。陣列的 type code 必須是 ``u``;其他的型別 "
398
+ "會導致 :exc:`ValueError`被引發 。使用 ``array.frombytes(unicodestring."
402
399
"encode(enc))`` 來新增 Unicode 資料到一個其他型別的陣列。"
403
400
404
401
#: ../../library/array.rst:188
@@ -409,31 +406,31 @@ msgid ""
409
406
"`ValueError` if *x* is not found."
410
407
msgstr ""
411
408
"回傳 *i* 的最小數值,使得 *i* 成為陣列之中第一次出現 *x* 的索引。選擇性的引"
412
- "數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *x*\\ 。如果 *x*不存 "
413
- "在將導致 :exc:`ValueError`\\ 。"
409
+ "數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *x*。如果 *x*不存在 "
410
+ "將導致 :exc:`ValueError`。"
414
411
415
412
#: ../../library/array.rst:193
416
413
msgid "Added optional *start* and *stop* parameters."
417
- msgstr "新增選擇性的參數 *start* 及 *stop*\\ 。"
414
+ msgstr "新增選擇性的參數 *start* 及 *stop*。"
418
415
419
416
#: ../../library/array.rst:199
420
417
msgid ""
421
418
"Insert a new item with value *x* in the array before position *i*. Negative "
422
419
"values are treated as being relative to the end of the array."
423
- msgstr "在位置 *i* 之前插入一個元素 *x*\\ 。負數的索引值會從陣列尾端開始數。"
420
+ msgstr "在位置 *i* 之前插入一個元素 *x*。負數的索引值會從陣列尾端開始數。"
424
421
425
422
#: ../../library/array.rst:205
426
423
msgid ""
427
424
"Removes the item with the index *i* from the array and returns it. The "
428
425
"optional argument defaults to ``-1``, so that by default the last item is "
429
426
"removed and returned."
430
427
msgstr ""
431
- "移除並回傳陣列索引值 *i* 的元素。選擇性的引數 *i* 預設為 ``-1``\\ ,所以預設 "
432
- "會刪除並回傳最後一個元素 。"
428
+ "移除並回傳陣列索引值 *i* 的元素。選擇性的引數 *i* 預設為 ``-1``,所以預設會刪 "
429
+ "除並回傳最後一個元素 。"
433
430
434
431
#: ../../library/array.rst:212
435
432
msgid "Remove the first occurrence of *x* from the array."
436
- msgstr "從陣列中刪除第一個出現的 *x*\\ 。"
433
+ msgstr "從陣列中刪除第一個出現的 *x*。"
437
434
438
435
#: ../../library/array.rst:217
439
436
msgid "Reverse the order of the items in the array."
@@ -450,29 +447,27 @@ msgstr ""
450
447
451
448
#: ../../library/array.rst:226
452
449
msgid ":meth:`!tostring` is renamed to :meth:`tobytes` for clarity."
453
- msgstr "為了明確性,過去的 :meth:`!tostring` 已更名為 :meth:`tobytes`\\ 。"
450
+ msgstr "為了明確性,過去的 :meth:`!tostring` 已更名為 :meth:`tobytes`。"
454
451
455
452
#: ../../library/array.rst:232
456
453
msgid "Write all items (as machine values) to the :term:`file object` *f*."
457
- msgstr "將所有元素(作為機器數值)寫入 :term:`file object` *f*\\ 。"
454
+ msgstr "將所有元素(作為機器數值)寫入 :term:`file object` *f*。"
458
455
459
456
#: ../../library/array.rst:237
460
457
msgid "Convert the array to an ordinary list with the same items."
461
458
msgstr "不更改元素,將陣列轉為一般的 list。"
462
459
463
460
#: ../../library/array.rst:242
464
- #, fuzzy
465
461
msgid ""
466
462
"Convert the array to a Unicode string. The array must have a type ``'u'``; "
467
463
"otherwise a :exc:`ValueError` is raised. Use ``array.tobytes().decode(enc)`` "
468
464
"to obtain a Unicode string from an array of some other type."
469
465
msgstr ""
470
- "將陣列轉為一個字串 。陣列的型別必須為 ``u``\\ 。其他型別的陣列會導致:exc :"
471
- "`ValueError` 錯誤。使用 ``array.tobytes().decode(enc)``將其他型別的陣列轉為 "
472
- "字串。"
466
+ "將陣列轉為一個 Unicode 字串 。陣列的型別必須為 ``u``。其他型別的陣列會導致 :"
467
+ "exc: `ValueError` 錯誤。請使用 ``array.tobytes().decode(enc)``來為其他型別的 "
468
+ "陣列轉為 Unicode 字串。"
473
469
474
470
#: ../../library/array.rst:247
475
- #, fuzzy
476
471
msgid ""
477
472
"The string representation of array objects has the form ``array(typecode, "
478
473
"initializer)``. The *initializer* is omitted if the array is empty, "
@@ -483,13 +478,11 @@ msgid ""
483
478
"``from array import array``. Variables ``inf`` and ``nan`` must also be "
484
479
"defined if it contains corresponding floating point values. Examples::"
485
480
msgstr ""
486
- "當一個陣列物件被列印或轉換成字串時,它會被表示為 ``array(typecode, "
487
- "initializer)``\\ 。若為空陣列則參數 *initializer* 被省略,若 *typecode* 是 "
488
- "``'u'`` 將被表示為字串,其他情況則被表示為由數字組成的 list。只要 :class:"
489
- "`~array.array` class(類別)透過 ``from array import array`` 的方式引入,便能"
490
- "確保該字串能透過 :func:`eval` 轉換回一個擁有相同型別及數值的陣列。範例:\n"
491
- "\n"
492
- "::"
481
+ "陣列物件的字串表示形式為 ``array(typecode, initializer)``。若為空陣列則參數 "
482
+ "*initializer* 被省略,若 *typecode* 是 ``'u'`` 將被表示為 Unicode 字串,其他"
483
+ "情況則被表示為由數字組成的 list。只要 :class:`~array.array` class(類別)透"
484
+ "過 ``from array import array`` 的方式引入,便能確保該字串表示能透過 :func:"
485
+ "`eval` 轉換回一個擁有相同型別及數值的陣列。範例: ::"
493
486
494
487
#: ../../library/array.rst:268
495
488
msgid "Module :mod:`struct`"