Skip to content

Commit 8d0b962

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython c2c970fc
1 parent d604cbd commit 8d0b962

File tree

4 files changed

+679
-651
lines changed

4 files changed

+679
-651
lines changed

library/array.po

+45-40
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2022-10-31 08:13+0000\n"
14+
"POT-Creation-Date: 2023-02-02 00:16+0000\n"
1515
"PO-Revision-Date: 2021-11-23 18:40+0800\n"
1616
"Last-Translator: Benson Chen <bc842017@gmail.com>\n"
1717
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -229,10 +229,19 @@ msgstr ""
229229
"實際的大小可以透過 :attr:`itemsize` 屬性存取。"
230230

231231
#: ../../library/array.rst:65
232-
msgid "The module defines the following type:"
232+
#, fuzzy
233+
msgid "The module defines the following item:"
233234
msgstr "這個模組定義了下方的型別:"
234235

235236
#: ../../library/array.rst:70
237+
msgid "A string with all available type codes."
238+
msgstr "一個包含所有可用的 type codes 的字串。"
239+
240+
#: ../../library/array.rst:73
241+
msgid "The module defines the following type:"
242+
msgstr "這個模組定義了下方的型別:"
243+
244+
#: ../../library/array.rst:78
236245
msgid ""
237246
"A new array whose items are restricted by *typecode*, and initialized from "
238247
"the optional *initializer* value, which must be a list, a :term:`bytes-like "
@@ -242,7 +251,7 @@ msgstr ""
242251
"化,\\ *initializer* 必須是一個 list、\\ :term:`bytes-like object`\\ (類位元"
243252
"組串物件)或包含適當型別變數的可疊代物件 (iterable)。"
244253

245-
#: ../../library/array.rst:75
254+
#: ../../library/array.rst:83
246255
msgid ""
247256
"If given a list or string, the initializer is passed to the new array's :"
248257
"meth:`fromlist`, :meth:`frombytes`, or :meth:`fromunicode` method (see "
@@ -261,11 +270,7 @@ msgstr ""
261270
"引發\\ :ref:`稽核事件 (auditing event) <auditing>` ``array.__new__`` 並帶入引"
262271
"數 ``typecode``\\\\ ``initializer``\\。"
263272

264-
#: ../../library/array.rst:84
265-
msgid "A string with all available type codes."
266-
msgstr "一個包含所有可用的 type codes 的字串。"
267-
268-
#: ../../library/array.rst:86
273+
#: ../../library/array.rst:91
269274
msgid ""
270275
"Array objects support the ordinary sequence operations of indexing, slicing, "
271276
"concatenation, and multiplication. When using slice assignment, the "
@@ -280,23 +285,23 @@ msgstr ""
280285
"實作了緩衝區介面,可以在任何支援 :term:`bytes-like objects <bytes-like "
281286
"object>` 的地方使用。"
282287

283-
#: ../../library/array.rst:92
288+
#: ../../library/array.rst:97
284289
msgid "The following data items and methods are also supported:"
285290
msgstr "提供下方的資料物件與方法:"
286291

287-
#: ../../library/array.rst:96
292+
#: ../../library/array.rst:101
288293
msgid "The typecode character used to create the array."
289294
msgstr "typecode 字元被用在建立陣列時。"
290295

291-
#: ../../library/array.rst:101
296+
#: ../../library/array.rst:106
292297
msgid "The length in bytes of one array item in the internal representation."
293298
msgstr "陣列當中的一個元素在內部需要的位元組長度。"
294299

295-
#: ../../library/array.rst:106
300+
#: ../../library/array.rst:111
296301
msgid "Append a new item with value *x* to the end of the array."
297302
msgstr "新增一個元素 *x* 到陣列的最尾端。"
298303

299-
#: ../../library/array.rst:111
304+
#: ../../library/array.rst:116
300305
msgid ""
301306
"Return a tuple ``(address, length)`` giving the current memory address and "
302307
"the length in elements of the buffer used to hold array's contents. The "
@@ -313,7 +318,7 @@ msgstr ""
313318
"用,例如 :c:func:`ioctl` 指令。只要陣列存在且沒有使用任何更改長度的操作時,回"
314319
"傳的數值就有效。"
315320

316-
#: ../../library/array.rst:121
321+
#: ../../library/array.rst:126
317322
msgid ""
318323
"When using array objects from code written in C or C++ (the only way to "
319324
"effectively make use of this information), it makes more sense to use the "
@@ -325,7 +330,7 @@ msgstr ""
325330
"適當的做法是使用陣列物件支援的緩衝區介面。這個方法維護了向後兼容性,並應該在"
326331
"新的程式碼中避免。關於緩衝區介面的文件在\\ :ref:`bufferobjects`\\ 。"
327332

328-
#: ../../library/array.rst:130
333+
#: ../../library/array.rst:135
329334
msgid ""
330335
"\"Byteswap\" all items of the array. This is only supported for values "
331336
"which are 1, 2, 4, or 8 bytes in size; for other types of values, :exc:"
@@ -336,11 +341,11 @@ msgstr ""
336341
"列,其他型別的值會導致 :exc:`RuntimeError`\\ 。這在從機器讀取位元順序不同的檔"
337342
"案時很有用。"
338343

339-
#: ../../library/array.rst:138
344+
#: ../../library/array.rst:143
340345
msgid "Return the number of occurrences of *x* in the array."
341346
msgstr "回傳 *x* 在陣列中出現了幾次。"
342347

343-
#: ../../library/array.rst:143
348+
#: ../../library/array.rst:148
344349
msgid ""
345350
"Append items from *iterable* to the end of the array. If *iterable* is "
346351
"another array, it must have *exactly* the same type code; if not, :exc:"
@@ -352,7 +357,7 @@ msgstr ""
352357
"是一個陣列,它必須可以被疊代 (iterable) 且其中的元素必須是可以被加入陣列中的"
353358
"正確型別。"
354359

355-
#: ../../library/array.rst:151
360+
#: ../../library/array.rst:156
356361
msgid ""
357362
"Appends items from the string, interpreting the string as an array of "
358363
"machine values (as if it had been read from a file using the :meth:"
@@ -361,11 +366,11 @@ msgstr ""
361366
"從字串中新增元素。讀取時會將字串當作一個機器數值組成的陣列(就像從檔案中使"
362367
"用 :meth:`fromfile` 方法讀出的資料)。"
363368

364-
#: ../../library/array.rst:154
369+
#: ../../library/array.rst:159
365370
msgid ":meth:`fromstring` is renamed to :meth:`frombytes` for clarity."
366371
msgstr "將 :meth:`fromstring` 更名為 :meth:`frombytes`\\ ,使其更加清晰易懂。"
367372

368-
#: ../../library/array.rst:160
373+
#: ../../library/array.rst:165
369374
msgid ""
370375
"Read *n* items (as machine values) from the :term:`file object` *f* and "
371376
"append them to the end of the array. If less than *n* items are available, :"
@@ -376,15 +381,15 @@ msgstr ""
376381
"入陣列的最尾端。如果只有少於 *n* 個有效的元素會導致 :exc:`EOFError`\\ ,但有"
377382
"效的元素仍然會被加入陣列中。"
378383

379-
#: ../../library/array.rst:168
384+
#: ../../library/array.rst:173
380385
msgid ""
381386
"Append items from the list. This is equivalent to ``for x in list: a."
382387
"append(x)`` except that if there is a type error, the array is unchanged."
383388
msgstr ""
384389
"從 list 中新增元素。這等價於 ``for x in list: a.append(x)``\\ ,除了有型別錯"
385390
"誤產生時,陣列會保持原狀不會被更改。"
386391

387-
#: ../../library/array.rst:174
392+
#: ../../library/array.rst:179
388393
msgid ""
389394
"Extends this array with data from the given unicode string. The array must "
390395
"be a type ``'u'`` array; otherwise a :exc:`ValueError` is raised. Use "
@@ -395,7 +400,7 @@ msgstr ""
395400
"導致 :exc:`ValueError` 錯誤。使用 ``array.frombytes(unicodestring."
396401
"encode(enc))`` 來新增 Unicode 資料到一個其他型別的陣列。"
397402

398-
#: ../../library/array.rst:182
403+
#: ../../library/array.rst:187
399404
msgid ""
400405
"Return the smallest *i* such that *i* is the index of the first occurrence "
401406
"of *x* in the array. The optional arguments *start* and *stop* can be "
@@ -406,17 +411,17 @@ msgstr ""
406411
"數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *x*\\ 。如果 *x* 不存"
407412
"在將導致 :exc:`ValueError`\\ 。"
408413

409-
#: ../../library/array.rst:187
414+
#: ../../library/array.rst:192
410415
msgid "Added optional *start* and *stop* parameters."
411416
msgstr "新增選擇性的參數 *start* 及 *stop*\\ 。"
412417

413-
#: ../../library/array.rst:192
418+
#: ../../library/array.rst:197
414419
msgid ""
415420
"Insert a new item with value *x* in the array before position *i*. Negative "
416421
"values are treated as being relative to the end of the array."
417422
msgstr "在位置 *i* 之前插入一個元素 *x*\\ 。負數的索引值會從陣列尾端開始數。"
418423

419-
#: ../../library/array.rst:198
424+
#: ../../library/array.rst:203
420425
msgid ""
421426
"Removes the item with the index *i* from the array and returns it. The "
422427
"optional argument defaults to ``-1``, so that by default the last item is "
@@ -425,15 +430,15 @@ msgstr ""
425430
"移除並回傳陣列索引值 *i* 的元素。選擇性的引數 *i* 預設為 ``-1``\\ ,所以預設"
426431
"會刪除並回傳最後一個元素。"
427432

428-
#: ../../library/array.rst:205
433+
#: ../../library/array.rst:210
429434
msgid "Remove the first occurrence of *x* from the array."
430435
msgstr "從陣列中刪除第一個出現的 *x*\\ 。"
431436

432-
#: ../../library/array.rst:210
437+
#: ../../library/array.rst:215
433438
msgid "Reverse the order of the items in the array."
434439
msgstr "反轉陣列中元素的順序。"
435440

436-
#: ../../library/array.rst:215
441+
#: ../../library/array.rst:220
437442
msgid ""
438443
"Convert the array to an array of machine values and return the bytes "
439444
"representation (the same sequence of bytes that would be written to a file "
@@ -442,19 +447,19 @@ msgstr ""
442447
"將陣列轉為另一個機器數值組成的陣列並回傳它的位元組表示(跟用 :meth:`tofile` "
443448
"方法寫入檔案時的位元序列相同)。"
444449

445-
#: ../../library/array.rst:219
450+
#: ../../library/array.rst:224
446451
msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity."
447452
msgstr "為了明確性,過去的 :meth:`tostring` 已更名為 :meth:`tobytes`\\ 。"
448453

449-
#: ../../library/array.rst:225
454+
#: ../../library/array.rst:230
450455
msgid "Write all items (as machine values) to the :term:`file object` *f*."
451456
msgstr "將所有元素(作為機器數值)寫入 :term:`file object` *f*\\ 。"
452457

453-
#: ../../library/array.rst:230
458+
#: ../../library/array.rst:235
454459
msgid "Convert the array to an ordinary list with the same items."
455460
msgstr "不更改元素,將陣列轉為一般的 list。"
456461

457-
#: ../../library/array.rst:235
462+
#: ../../library/array.rst:240
458463
msgid ""
459464
"Convert the array to a unicode string. The array must be a type ``'u'`` "
460465
"array; otherwise a :exc:`ValueError` is raised. Use ``array.tobytes()."
@@ -464,7 +469,7 @@ msgstr ""
464469
"`ValueError` 錯誤。使用 ``array.tobytes().decode(enc)`` 將其他型別的陣列轉為"
465470
"字串。"
466471

467-
#: ../../library/array.rst:240
472+
#: ../../library/array.rst:245
468473
msgid ""
469474
"When an array object is printed or converted to a string, it is represented "
470475
"as ``array(typecode, initializer)``. The *initializer* is omitted if the "
@@ -482,30 +487,30 @@ msgstr ""
482487
"\n"
483488
"::"
484489

485-
#: ../../library/array.rst:257
490+
#: ../../library/array.rst:262
486491
msgid "Module :mod:`struct`"
487492
msgstr ":mod:`struct` 模組"
488493

489-
#: ../../library/array.rst:257
494+
#: ../../library/array.rst:262
490495
msgid "Packing and unpacking of heterogeneous binary data."
491496
msgstr "將包含不同資料類型的二進位資料包裝與解開包裝。"
492497

493-
#: ../../library/array.rst:261
498+
#: ../../library/array.rst:266
494499
msgid "Module :mod:`xdrlib`"
495500
msgstr ":mod:`xdrlib` 模組"
496501

497-
#: ../../library/array.rst:260
502+
#: ../../library/array.rst:265
498503
msgid ""
499504
"Packing and unpacking of External Data Representation (XDR) data as used in "
500505
"some remote procedure call systems."
501506
msgstr ""
502507
"將 External Data Representation (XDR) 的資料包裝與解開包裝,這用在一些遠端操"
503508
"作的系統 (remote procedure call systems)。"
504509

505-
#: ../../library/array.rst:263
510+
#: ../../library/array.rst:268
506511
msgid "`NumPy <https://numpy.org/>`_"
507512
msgstr "`NumPy <https://numpy.org/>`_"
508513

509-
#: ../../library/array.rst:264
514+
#: ../../library/array.rst:269
510515
msgid "The NumPy package defines another array type."
511516
msgstr "NumPy 套件定義了另一個陣列型別"

0 commit comments

Comments
 (0)