@@ -10,7 +10,7 @@ msgid ""
1010msgstr ""
1111"Project-Id-Version : Python 3.14\n "
1212"Report-Msgid-Bugs-To : \n "
13- "POT-Creation-Date : 2026-03-27 00:22 +0000\n "
13+ "POT-Creation-Date : 2026-06-03 00:49 +0000\n "
1414"PO-Revision-Date : 2021-11-23 18:40+0800\n "
1515"Last-Translator : Benson Chen <bc842017@gmail.com>\n "
1616"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -303,26 +303,30 @@ msgstr ""
303303"在任何支援 :term:`bytes-like objects <bytes-like object>` 的地方使用。"
304304
305305#: ../../library/array.rst:109
306+ msgid "Arrays are :ref:`generic <generics>` over the type of their contents."
307+ msgstr ""
308+
309+ #: ../../library/array.rst:111
306310msgid ""
307311"Raises an :ref:`auditing event <auditing>` ``array.__new__`` with arguments "
308312"``typecode``, ``initializer``."
309313msgstr ""
310314"引發\\ :ref:`稽核事件 (auditing event) <auditing>` ``array.__new__`` 並附帶引"
311315"數 ``typecode``、``initializer``。"
312316
313- #: ../../library/array.rst:114
317+ #: ../../library/array.rst:116
314318msgid "The typecode character used to create the array."
315319msgstr "typecode 字元被用在建立陣列時。"
316320
317- #: ../../library/array.rst:119
321+ #: ../../library/array.rst:121
318322msgid "The length in bytes of one array item in the internal representation."
319323msgstr "陣列當中的一個元素在內部需要的位元組長度。"
320324
321- #: ../../library/array.rst:124
325+ #: ../../library/array.rst:126
322326msgid "Append a new item with the specified value to the end of the array."
323327msgstr "新增一個指定值的新元素到陣列的最尾端。"
324328
325- #: ../../library/array.rst:129
329+ #: ../../library/array.rst:131
326330msgid ""
327331"Return a tuple ``(address, length)`` giving the current memory address and "
328332"the length in elements of the buffer used to hold array's contents. The "
@@ -339,7 +343,7 @@ msgstr ""
339343"用,例如 :c:func:`!ioctl` 指令。只要陣列存在且沒有使用任何更改長度的操作時,"
340344"回傳的數值就有效。"
341345
342- #: ../../library/array.rst:139
346+ #: ../../library/array.rst:141
343347msgid ""
344348"When using array objects from code written in C or C++ (the only way to "
345349"effectively make use of this information), it makes more sense to use the "
@@ -351,7 +355,7 @@ msgstr ""
351355"適當的做法是使用陣列物件支援的緩衝區介面。這個方法維護了向後兼容性,並應該在"
352356"新的程式碼中避免。關於緩衝區介面的文件在\\ :ref:`bufferobjects`。"
353357
354- #: ../../library/array.rst:148
358+ #: ../../library/array.rst:150
355359msgid ""
356360"\" Byteswap\" all items of the array. This is only supported for values "
357361"which are 1, 2, 4, or 8 bytes in size; for other types of values, :exc:"
@@ -362,11 +366,11 @@ msgstr ""
362366"列,其他型別的值會導致 :exc:`RuntimeError`。這在從機器讀取位元順序不同的檔案"
363367"時很有用。"
364368
365- #: ../../library/array.rst:156
369+ #: ../../library/array.rst:158
366370msgid "Return the number of occurrences of *value* in the array."
367371msgstr "回傳 *value* 在陣列中出現了幾次。"
368372
369- #: ../../library/array.rst:161
373+ #: ../../library/array.rst:163
370374msgid ""
371375"Append items from *iterable* to the end of the array. If *iterable* is "
372376"another array, it must have *exactly* the same type code; if not, :exc:"
@@ -378,7 +382,7 @@ msgstr ""
378382"個陣列,它必須可以被疊代 (iterable) 且其中的元素必須是可以被加入陣列中的正確"
379383"型別。"
380384
381- #: ../../library/array.rst:169
385+ #: ../../library/array.rst:171
382386msgid ""
383387"Appends items from the :term:`bytes-like object`, interpreting its content "
384388"as an array of machine values (as if it had been read from a file using the :"
@@ -387,11 +391,11 @@ msgstr ""
387391"從 :term:`bytes-like object` 中新增元素。讀取時會將其內容當作一個機器數值組成"
388392"的陣列(就像從檔案中使用 :meth:`fromfile` 方法讀出的資料)。"
389393
390- #: ../../library/array.rst:173
394+ #: ../../library/array.rst:175
391395msgid ":meth:`!fromstring` is renamed to :meth:`frombytes` for clarity."
392396msgstr "將 :meth:`!fromstring` 更名為 :meth:`frombytes`,使其更加清晰易懂。"
393397
394- #: ../../library/array.rst:179
398+ #: ../../library/array.rst:181
395399msgid ""
396400"Read *n* items (as machine values) from the :term:`file object` *f* and "
397401"append them to the end of the array. If less than *n* items are available, :"
@@ -402,15 +406,15 @@ msgstr ""
402406"入陣列的最尾端。如果只有少於 *n* 個有效的元素會導致 :exc:`EOFError`,但有效的"
403407"元素仍然會被加入陣列中。"
404408
405- #: ../../library/array.rst:187
409+ #: ../../library/array.rst:189
406410msgid ""
407411"Append items from the list. This is equivalent to ``for x in list: a."
408412"append(x)`` except that if there is a type error, the array is unchanged."
409413msgstr ""
410414"從 list 中新增元素。這等價於 ``for x in list: a.append(x)``,除了有型別錯誤產"
411415"生時,陣列會保持原狀不會被更改。"
412416
413- #: ../../library/array.rst:193
417+ #: ../../library/array.rst:195
414418msgid ""
415419"Extends this array with data from the given Unicode string. The array must "
416420"have type code ``'u'`` or ``'w'``; otherwise a :exc:`ValueError` is raised. "
@@ -422,28 +426,29 @@ msgstr ""
422426"frombytes(unicodestring.encode(enc))`` 來新增 Unicode 資料到一個其他型別的陣"
423427"列。"
424428
425- #: ../../library/array.rst:201
429+ #: ../../library/array.rst:203
426430msgid ""
427431"Return the smallest *i* such that *i* is the index of the first occurrence "
428432"of *value* in the array. The optional arguments *start* and *stop* can be "
429433"specified to search for *value* within a subsection of the array. Raise :"
430434"exc:`ValueError` if *value* is not found."
431435msgstr ""
432- "回傳 *i* 的最小數值,使得 *i* 成為陣列之中第一次出現 *value* 的索引。選擇性 "
433- "的引數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *value*。如果 "
436+ "回傳 *i* 的最小數值,使得 *i* 成為陣列之中第一次出現 *value* 的索引。選擇性的 "
437+ "引數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *value*。如果 "
434438"*value* 不存在將導致 :exc:`ValueError`。"
435439
436- #: ../../library/array.rst:206
440+ #: ../../library/array.rst:208
437441msgid "Added optional *start* and *stop* parameters."
438442msgstr "新增選擇性的參數 *start* 及 *stop*。"
439443
440- #: ../../library/array.rst:212
444+ #: ../../library/array.rst:214
441445msgid ""
442446"Insert a new item *value* in the array before position *index*. Negative "
443447"values are treated as being relative to the end of the array."
444- msgstr "在位置 *index* 之前插入一個元素 *value*。負數的索引值會從陣列尾端開始數。"
448+ msgstr ""
449+ "在位置 *index* 之前插入一個元素 *value*。負數的索引值會從陣列尾端開始數。"
445450
446- #: ../../library/array.rst:218
451+ #: ../../library/array.rst:220
447452msgid ""
448453"Removes the item with the index *i* from the array and returns it. The "
449454"optional argument defaults to ``-1``, so that by default the last item is "
@@ -452,19 +457,19 @@ msgstr ""
452457"移除並回傳陣列索引值 *i* 的元素。選擇性的引數 *i* 預設為 ``-1``,所以預設會刪"
453458"除並回傳最後一個元素。"
454459
455- #: ../../library/array.rst:225
460+ #: ../../library/array.rst:227
456461msgid "Remove the first occurrence of *value* from the array."
457462msgstr "從陣列中刪除第一個出現的 *value*。"
458463
459- #: ../../library/array.rst:230
464+ #: ../../library/array.rst:232
460465msgid "Remove all elements from the array."
461466msgstr "從陣列中刪除所有元素。"
462467
463- #: ../../library/array.rst:237
468+ #: ../../library/array.rst:239
464469msgid "Reverse the order of the items in the array."
465470msgstr "反轉陣列中元素的順序。"
466471
467- #: ../../library/array.rst:242
472+ #: ../../library/array.rst:244
468473msgid ""
469474"Convert the array to an array of machine values and return the bytes "
470475"representation (the same sequence of bytes that would be written to a file "
@@ -473,19 +478,19 @@ msgstr ""
473478"將陣列轉為另一個機器數值組成的陣列並回傳它的位元組表示(跟用 :meth:`tofile` "
474479"方法寫入檔案時的位元序列相同)。"
475480
476- #: ../../library/array.rst:246
481+ #: ../../library/array.rst:248
477482msgid ":meth:`!tostring` is renamed to :meth:`tobytes` for clarity."
478483msgstr "為了明確性,過去的 :meth:`!tostring` 已更名為 :meth:`tobytes`。"
479484
480- #: ../../library/array.rst:252
485+ #: ../../library/array.rst:254
481486msgid "Write all items (as machine values) to the :term:`file object` *f*."
482487msgstr "將所有元素(作為機器數值)寫入 :term:`file object` *f*。"
483488
484- #: ../../library/array.rst:257
489+ #: ../../library/array.rst:259
485490msgid "Convert the array to an ordinary list with the same items."
486491msgstr "不更改元素,將陣列轉為一般的 list。"
487492
488- #: ../../library/array.rst:262
493+ #: ../../library/array.rst:264
489494msgid ""
490495"Convert the array to a Unicode string. The array must have a type ``'u'`` "
491496"or ``'w'``; otherwise a :exc:`ValueError` is raised. Use ``array.tobytes()."
@@ -495,7 +500,7 @@ msgstr ""
495500"列會引發 :exc:`ValueError`。請使用 ``array.tobytes().decode(enc)`` 來為其他型"
496501"別的陣列轉為 Unicode 字串。"
497502
498- #: ../../library/array.rst:267
503+ #: ../../library/array.rst:269
499504msgid ""
500505"The string representation of array objects has the form ``array(typecode, "
501506"initializer)``. The *initializer* is omitted if the array is empty, "
@@ -514,7 +519,7 @@ msgstr ""
514519"過 :func:`eval` 轉換回一個擁有相同型別及數值的陣列。如果它包含相應的浮點值,"
515520"``inf`` 和 ``nan`` 也必須被定義。範例: ::"
516521
517- #: ../../library/array.rst:279
522+ #: ../../library/array.rst:281
518523msgid ""
519524"array('l')\n"
520525"array('w', 'hello \\ u2641')\n"
@@ -526,19 +531,19 @@ msgstr ""
526531"array('l', [1, 2, 3, 4, 5])\n"
527532"array('d', [1.0, 2.0, 3.14, -inf, nan])"
528533
529- #: ../../library/array.rst:287
534+ #: ../../library/array.rst:289
530535msgid "Module :mod:`struct`"
531536msgstr ":mod:`struct` 模組"
532537
533- #: ../../library/array.rst:288
538+ #: ../../library/array.rst:290
534539msgid "Packing and unpacking of heterogeneous binary data."
535540msgstr "將包含不同資料類型的二進位資料包裝與解開包裝。"
536541
537- #: ../../library/array.rst:290
542+ #: ../../library/array.rst:292
538543msgid "`NumPy <https://numpy.org/>`_"
539544msgstr "`NumPy <https://numpy.org/>`_"
540545
541- #: ../../library/array.rst:291
546+ #: ../../library/array.rst:293
542547msgid "The NumPy package defines another array type."
543548msgstr "NumPy 套件定義了另一個陣列型別"
544549
0 commit comments