@@ -10,7 +10,7 @@ msgstr ""
10
10
"Project-Id-Version : Python 3.10\n "
11
11
"Report-Msgid-Bugs-To : \n "
12
12
"POT-Creation-Date : 2021-10-26 16:47+0000\n "
13
- "PO-Revision-Date : 2021-11-13 22:30 +0800\n "
13
+ "PO-Revision-Date : 2021-11-13 23:06 +0800\n "
14
14
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
15
15
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
16
16
"tw)\n "
@@ -35,9 +35,9 @@ msgid ""
35
35
"following type codes are defined:"
36
36
msgstr ""
37
37
"這個模組定義了一個物件型別,可以簡潔的表達一個包含基本數值的陣列:字元、整"
38
- "數、浮點數。陣列是一個非常類似 list 的序列型態,除了陣列會限制儲存的物件型 "
39
- "別 。在建立陣列時可以使用一個字元的 :dfn:`type code` 來指定儲存的資料型別。下 "
40
- "面是 type codes 的定義。"
38
+ "數、浮點數。陣列是一個非常類似 list(串列) 的序列型別,除了陣列會限制儲存的 "
39
+ "物件型別 。在建立陣列時可以使用一個字元的 :dfn:`type code` 來指定儲存的資料型 "
40
+ "別。下面是 type codes 的定義。"
41
41
42
42
#: ../../library/array.rst:19
43
43
msgid "Type code"
@@ -240,8 +240,8 @@ msgid ""
240
240
"object`, or iterable over elements of the appropriate type."
241
241
msgstr ""
242
242
"一個新的陣列中的元素被 *typecode* 限制,並由選用的 *initializer* 參數初始"
243
- "化, *initializer* 必須是一個 list、 :term:`bytes-like object` 或包含適當型別 "
244
- "變數的 iterable 。"
243
+ "化, *initializer* 必須是一個 list(串列) 、 :term:`bytes-like object` 或包含 "
244
+ "適當型別變數的 iterable 。"
245
245
246
246
#: ../../library/array.rst:75
247
247
msgid ""
@@ -250,9 +250,9 @@ msgid ""
250
250
"below) to add initial items to the array. Otherwise, the iterable "
251
251
"initializer is passed to the :meth:`extend` method."
252
252
msgstr ""
253
- "如果指定一個 list 或 string ,新的陣列初始化時會傳入 :meth:`fromlist` 、 :"
254
- "meth:`frombytes` 或 :meth:`fromunicode` 方法(參照下方)將元素新增到其中。其 "
255
- "他型態的變數則會傳入 :meth:`extend` 方法初始化。"
253
+ "如果指定一個 list(串列) 或 string ,新的陣列初始化時會傳入 :meth:"
254
+ "`fromlist` 、 : meth:`frombytes` 或 :meth:`fromunicode` 方法(參照下方)將元素 "
255
+ "新增到其中。其他型態的變數則會傳入 :meth:`extend` 方法初始化。"
256
256
257
257
#: ../../library/array.rst:80
258
258
#, fuzzy
@@ -265,7 +265,7 @@ msgstr ""
265
265
266
266
#: ../../library/array.rst:84
267
267
msgid "A string with all available type codes."
268
- msgstr "一個包含所有可用的 type code 的字串。"
268
+ msgstr "一個包含所有可用的 type codes 的字串。"
269
269
270
270
#: ../../library/array.rst:86
271
271
msgid ""
@@ -278,9 +278,9 @@ msgid ""
278
278
msgstr ""
279
279
"陣列支援常見的序列操作,包含索引(indexing)、切片(slicing)、串接"
280
280
"(concatenation)、相乘(multiplication)等。當使用切片進行賦值時,賦值的陣列"
281
- "必須具備相同的型別代號( type code),其他型別的數值將引發 :exc:"
282
- "`TypeError` 。陣列同時也實作了緩衝區介面 ,可以在任何支援 :term:`bytes-like "
283
- "objects <bytes-like object>` 的地方使用。"
281
+ "必須具備相同的 type code ,其他型別的數值將導致 :exc:`TypeError` 。陣列同時 "
282
+ "也實作了緩衝區介面 ,可以在任何支援 :term:`bytes-like objects < bytes-like "
283
+ "object>` 的地方使用。"
284
284
285
285
#: ../../library/array.rst:92
286
286
msgid "The following data items and methods are also supported:"
@@ -350,9 +350,9 @@ msgid ""
350
350
"iterable and its elements must be the right type to be appended to the array."
351
351
msgstr ""
352
352
"從 *iterable* 中新增元素到陣列的尾端,如果 *iterable* 是另一個陣列,他必須有"
353
- "完全相同的 type code ,如果不同會產生 :exc:`TypeError` 。如果 *iterable* 不是"
353
+ "完全相同的 type code ,如果不同會導致 :exc:`TypeError` 。如果 *iterable* 不是"
354
354
"一個陣列,他必須可以被迭代 (iterable) 且其中的元素必須是可以被加入陣列中的正"
355
- "確型態 。"
355
+ "確型別 。"
356
356
357
357
#: ../../library/array.rst:151
358
358
msgid ""
@@ -375,16 +375,16 @@ msgid ""
375
375
"inserted into the array."
376
376
msgstr ""
377
377
"從 :term:`file object` *f* 讀取 *n* 個 machine value 類型的元素,接著將這些元"
378
- "素加入陣列的最尾端。如果只有少於 *n* 個有效的元素會產生 :exc:`EOFError` 錯 "
379
- "誤,但有效的元素仍然會被加入陣列中 。"
378
+ "素加入陣列的最尾端。如果只有少於 *n* 個有效的元素會導致 :exc:`EOFError` ,但 "
379
+ "有效的元素仍然會被加入陣列中 。"
380
380
381
381
#: ../../library/array.rst:168
382
382
msgid ""
383
383
"Append items from the list. This is equivalent to ``for x in list: a."
384
384
"append(x)`` except that if there is a type error, the array is unchanged."
385
385
msgstr ""
386
- "從 list 中新增元素。這等價於 ``for x in list: a.append(x)`` ,除了有型態錯誤 "
387
- "產生時 ,陣列會保持原狀不會被更改。"
386
+ "從 list(串列) 中新增元素。這等價於 ``for x in list: a.append(x)`` ,除了有型 "
387
+ "別錯誤產生時 ,陣列會保持原狀不會被更改。"
388
388
389
389
#: ../../library/array.rst:174
390
390
msgid ""
@@ -393,9 +393,9 @@ msgid ""
393
393
"``array.frombytes(unicodestring.encode(enc))`` to append Unicode data to an "
394
394
"array of some other type."
395
395
msgstr ""
396
- "用給定的 unicode 字串擴展這個陣列。陣列必須是型態 ``u`` 的陣列;其他的型態會 "
397
- "產生 :exc:`ValueError` 錯誤。使用 ``array.frombytes(unicodestring."
398
- "encode(enc))`` 來新增 Unicode 資料到一個其他型態的陣列 。"
396
+ "用給定的 unicode 字串擴展這個陣列。陣列必須是 ``u`` 型別的陣列;其他的型別會 "
397
+ "導致 :exc:`ValueError` 錯誤。使用 ``array.frombytes(unicodestring."
398
+ "encode(enc))`` 來新增 Unicode 資料到一個其他型別的陣列 。"
399
399
400
400
#: ../../library/array.rst:182
401
401
#, fuzzy
@@ -407,7 +407,7 @@ msgid ""
407
407
msgstr ""
408
408
"回傳 *i* 的最小數值,使得 *i* 成為陣列之中第一次出現 *x* 的索引。選擇性的參"
409
409
"數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *x* 。如果 *x* 不存在"
410
- "將引發 :exc:`ValueError` 。"
410
+ "將導致 :exc:`ValueError` 。"
411
411
412
412
#: ../../library/array.rst:187
413
413
#, fuzzy
@@ -456,16 +456,16 @@ msgstr "將所有元素 (以 machine code 的形式)寫入 :term:`file objec
456
456
457
457
#: ../../library/array.rst:230
458
458
msgid "Convert the array to an ordinary list with the same items."
459
- msgstr "不更改元素,將陣列轉為一般的 list 。"
459
+ msgstr "不更改元素,將陣列轉為一般的 list(串列) 。"
460
460
461
461
#: ../../library/array.rst:235
462
462
msgid ""
463
463
"Convert the array to a unicode string. The array must be a type ``'u'`` "
464
464
"array; otherwise a :exc:`ValueError` is raised. Use ``array.tobytes()."
465
465
"decode(enc)`` to obtain a unicode string from an array of some other type."
466
466
msgstr ""
467
- "將陣列轉為一個字串。陣列的型態必須為 ``u`` 。其他型態的陣列會產生 :exc:"
468
- "`ValueError` 錯誤。使用 ``array.tobytes().decode(enc)`` 將其他型態的陣列轉為 "
467
+ "將陣列轉為一個字串。陣列的型態必須為 ``u`` 。其他型別的陣列會導致 :exc:"
468
+ "`ValueError` 錯誤。使用 ``array.tobytes().decode(enc)`` 將其他型別的陣列轉為 "
469
469
"字串。"
470
470
471
471
#: ../../library/array.rst:240
@@ -481,9 +481,9 @@ msgid ""
481
481
msgstr ""
482
482
"當一個陣列物件被列印或轉換成字串時,他會被表示為 ``array(typecode, "
483
483
"initializer)`` 。若為空陣列則參數 *initializer* 被省略,若 *typecode* 是 "
484
- "``’u’`` 將被表示為字串,其他情況則被表示為數字 list (串列) 。只要 :class:"
484
+ "``’u’`` 將被表示為字串,其他情況則被表示為數字 list(串列) 。只要 :class:"
485
485
"`~array.array` class(類別)透過 ``from array import array`` 的方式引入,使"
486
- "用 :func:`eval` 便能確保其字串被轉換回一個擁有相同型別及值的陣列 。範例:\n"
486
+ "用 :func:`eval` 便能確保其字串被轉換回一個擁有相同型別及數值的陣列 。範例:\n"
487
487
"\n"
488
488
"::"
489
489
@@ -513,7 +513,7 @@ msgstr "`NumPy <https://numpy.org/>`_"
513
513
514
514
#: ../../library/array.rst:264
515
515
msgid "The NumPy package defines another array type."
516
- msgstr "NumPy 套件定義了另一個陣列型態 "
516
+ msgstr "NumPy 套件定義了另一個陣列型別 "
517
517
518
518
#~ msgid ""
519
519
#~ "Return the smallest *i* such that *i* is the index of the first "
0 commit comments