8000 sync with cpython bfac5d98 · python/python-docs-zh-tw@0a9dda3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a9dda3

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython bfac5d98
1 parent 1654a92 commit 0a9dda3

File tree

1 file changed

+51
-48
lines changed

1 file changed

+51
-48
lines changed

library/array.po

Lines changed: 51 additions & 48 deletions
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: 2023-02-02 00:16+0000\n"
14+
"POT-Creation-Date: 2023-02-03 00:17+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-"
@@ -220,10 +220,11 @@ msgstr ""
220220
"即為 ``wchar_t`` 的別名。"
221221

222222
#: ../../library/array.rst:61
223+
#, fuzzy
223224
msgid ""
224225
"The actual representation of values is determined by the machine "
225226
"architecture (strictly speaking, by the C implementation). The actual size "
226-
"can be accessed through the :attr:`itemsize` attribute."
227+
"can be accessed through the :attr:`array.itemsize` attribute."
227228
msgstr ""
228229
"實際上數值的表示方法是被機器的架構所決定(更精準地說,被 C 的實作方法決定)。"
229230
"實際的大小可以透過 :attr:`itemsize` 屬性存取。"
@@ -261,15 +262,7 @@ msgstr ""
261262
"meth:`frombytes` 或 :meth:`fromunicode` 方法(參照下方)將元素新增到其中。其"
262263
"他情況時, 一個 iterable initializer 將被傳入 :meth:`extend` 方法之中。"
263264

264-
#: ../../library/array.rst:11
265-
msgid ""
266-
"Raises an :ref:`auditing event <auditing>` ``array.__new__`` with arguments "
267-
"``typecode``, ``initializer``."
268-
msgstr ""
269-
"引發\\ :ref:`稽核事件 (auditing event) <auditing>` ``array.__new__`` 並帶入引"
270-
"數 ``typecode``\\\\ ``initializer``\\。"
271-
272-
#: ../../library/array.rst:91
265+
#: ../../library/array.rst:88
273266
msgid ""
274267
"Array objects support the ordinary sequence operations of indexing, slicing, "
275268
"concatenation, and multiplication. When using slice assignment, the "
@@ -284,30 +277,35 @@ msgstr ""
284277
"實作了緩衝區介面,可以在任何支援 :term:`bytes-like objects <bytes-like "
285278
"object>` 的地方使用。"
286279

287-
#: ../../library/array.rst:97
288-
msgid "The following data items and methods are also supported:"
289-
msgstr "提供下方的資料物件與方法:"
280+
#: ../../library/array.rst:17
281+
msgid ""
282+
"Raises an :ref:`auditing event <auditing>` ``array.__new__`` with arguments "
283+
"``typecode``, ``initializer``."
284+
msgstr ""
285+
"引發\\ :ref:`稽核事件 (auditing event) <auditing>` ``array.__new__`` 並帶入引"
286+
"數 ``typecode``\\\\ ``initializer``\\。"
290287

291-
#: ../../library/array.rst:101
288+
#: ../../library/array.rst:99
292289
msgid "The typecode character used to create the array."
293290
msgstr "typecode 字元被用在建立陣列時。"
294291

295-
#: ../../library/array.rst:106
292+
#: ../../library/array.rst:104
296293
msgid "The length in bytes of one array item in the internal representation."
297294
msgstr "陣列當中的一個元素在內部需要的位元組長度。"
298295

299-
#: ../../library/array.rst:111
296+
#: ../../library/array.rst:109
300297
msgid "Append a new item with value *x* to the end of the array."
301298
msgstr "新增一個元素 *x* 到陣列的最尾端。"
302299

303-
#: ../../library/array.rst:116
300+
#: ../../library/array.rst:114
301+
#, fuzzy
304302
msgid ""
305303
"Return a tuple ``(address, length)`` giving the current memory address and "
306304
"the length in elements of the buffer used to hold array's contents. The "
307305
"size of the memory buffer in bytes can be computed as ``array.buffer_info()"
308306
"[1] * array.itemsize``. This is occasionally useful when working with low-"
309307
"level (and inherently unsafe) I/O interfaces that require memory addresses, "
310-
"such as certain :c:func:`ioctl` operations. The returned numbers are valid "
308+
"such as certain :c:func:`!ioctl` operations. The returned numbers are valid "
311309
"as long as the array exists and no length-changing operations are applied to "
312310
"it."
313311
msgstr ""
@@ -317,7 +315,7 @@ msgstr ""
317315
"用,例如 :c:func:`ioctl` 指令。只要陣列存在且沒有使用任何更改長度的操作時,回"
318316
"傳的數值就有效。"
319317

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

332-
#: ../../library/array.rst:135
330+
#: ../../library/array.rst:133
333331
msgid ""
334332
"\"Byteswap\" all items of the array. This is only supported for values "
335333
"which are 1, 2, 4, or 8 bytes in size; for other types of values, :exc:"
@@ -340,11 +338,11 @@ msgstr ""
340338
"列,其他型別的值會導致 :exc:`RuntimeError`\\ 。這在從機器讀取位元順序不同的檔"
341339
"案時很有用。"
342340

343-
#: ../../library/array.rst:143
341+
#: ../../library/array.rst:141
344342
msgid "Return the number of occurrences of *x* in the array."
345343
msgstr "回傳 *x* 在陣列中出現了幾次。"
346344

347-
#: ../../library/array.rst:148
345+
#: ../../library/array.rst:146
348346
msgid ""
349347
"Append items from *iterable* to the end of the array. If *iterable* is "
350348
"another array, it must have *exactly* the same type code; if not, :exc:"
@@ -356,7 +354,7 @@ msgstr ""
356354
"是一個陣列,它必須可以被疊代 (iterable) 且其中的元素必須是可以被加入陣列中的"
357355
"正確型別。"
358356

359-
#: ../../library/array.rst:156
357+
#: ../../library/array.rst:154
360358
msgid ""
361359
"Appends items from the string, interpreting the string as an array of "
362360
"machine values (as if it had been read from a file using the :meth:"
@@ -365,11 +363,12 @@ msgstr ""
365363
"從字串中新增元素。讀取時會將字串當作一個機器數值組成的陣列(就像從檔案中使"
366364
"用 :meth:`fromfile` 方法讀出的資料)。"
367365

368-
#: ../../library/array.rst:159
369-
msgid ":meth:`fromstring` is renamed to :meth:`frombytes` for clarity."
366+
#: ../../library/array.rst:157
367+
#, fuzzy
368+
msgid ":meth:`!fromstring` is renamed to :meth:`frombytes` for clarity."
370369
msgstr "將 :meth:`fromstring` 更名為 :meth:`frombytes`\\ ,使其更加清晰易懂。"
371370

372-
#: ../../library/array.rst:165
371+
#: ../../library/array.rst:163
373372
msgid ""
374373
"Read *n* items (as machine values) from the :term:`file object` *f* and "
375374
"append them to the end of the array. If less than *n* items are available, :"
@@ -380,15 +379,15 @@ msgstr ""
380379
"入陣列的最尾端。如果只有少於 *n* 個有效的元素會導致 :exc:`EOFError`\\ ,但有"
381380
"效的元素仍然會被加入陣列中。"
382381

383-
#: ../../library/array.rst:173
382+
#: ../../library/array.rst:171
384383
msgid ""
385384
"Append items from the list. This is equivalent to ``for x in list: a."
386385
"append(x)`` except that if there is a type error, the array is unchanged."
387386
msgstr ""
388387
"從 list 中新增元素。這等價於 ``for x in list: a.append(x)``\\ ,除了有型別錯"
389388
"誤產生時,陣列會保持原狀不會被更改。"
390389

391-
#: ../../library/array.rst:179
390+
#: ../../library/array.rst:177
392391
msgid ""
393392
"Extends this array with data from the given unicode string. The array must "
394393
"be a type ``'u'`` array; otherwise a :exc:`ValueError` is raised. Use "
@@ -399,7 +398,7 @@ msgstr ""
399398
"導致 :exc:`ValueError` 錯誤。使用 ``array.frombytes(unicodestring."
400399
"encode(enc))`` 來新增 Unicode 資料到一個其他型別的陣列。"
401400

402-
#: ../../library/array.rst:187
401+
#: ../../library/array.rst:185
403402
msgid ""
404403
"Return the smallest *i* such that *i* is the index of the first occurrence "
405404
"of *x* in the array. The optional arguments *start* and *stop* can be "
@@ -410,17 +409,17 @@ msgstr ""
410409
"數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *x*\\ 。如果 *x* 不存"
411410
"在將導致 :exc:`ValueError`\\ 。"
412411

413-
#: ../../library/array.rst:192
412+
#: ../../library/array.rst:190
414413
msgid "Added optional *start* and *stop* parameters."
415414
msgstr "新增選擇性的參數 *start* 及 *stop*\\ 。"
416415

417-
#: ../../library/array.rst:197
416+
#: ../../library/array.rst:196
418417
msgid ""
419418
"Insert a new item with value *x* in the array before position *i*. Negative "
420419
"values are treated as being relative to the end of the array."
421420
msgstr "在位置 *i* 之前插入一個元素 *x*\\ 。負數的索引值會從陣列尾端開始數。"
422421

423-
#: ../../library/array.rst:203
422+
#: ../../library/array.rst:202
424423
msgid ""
425424
"Removes the item with the index *i* from the array and returns it. The "
426425
"optional argument defaults to ``-1``, so that by default the last item is "
@@ -429,15 +428,15 @@ msgstr ""
429428
"移除並回傳陣列索引值 *i* 的元素。選擇性的引數 *i* 預設為 ``-1``\\ ,所以預設"
430429
"會刪除並回傳最後一個元素。"
431430

432-
#: ../../library/array.rst:210
431+
#: ../../library/array.rst:209
433432
msgid "Remove the first occurrence of *x* from the array."
434433
msgstr "從陣列中刪除第一個出現的 *x*\\ 。"
435434

436-
#: ../../library/array.rst:215
435+
#: ../../library/array.rst:214
437436
msgid "Reverse the order of the items in the array."
438437
msgstr "反轉陣列中元素的順序。"
439438

440-
#: ../../library/array.rst:220
439+
#: ../../library/array.rst:219
441440
msgid ""
442441
"Convert the array to an array of machine values and return the bytes "
443442
"representation (the same sequence of bytes that would be written to a file "
@@ -446,19 +445,20 @@ msgstr ""
446445
"將陣列轉為另一個機器數值組成的陣列並回傳它的位元組表示(跟用 :meth:`tofile` "
447446
"方法寫入檔案時的位元序列相同)。"
448447

449-
#: ../../library/array.rst:224
450-
msgid ":meth:`tostring` is renamed to :meth:`tobytes` for clarity."
448+
#: ../../library/array.rst:223
449+
#, fuzzy
450+
msgid ":meth:`!tostring` is renamed to :meth:`tobytes` for clarity."
451451
msgstr "為了明確性,過去的 :meth:`tostring` 已更名為 :meth:`tobytes`\\ 。"
452452

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

457-
#: ../../library/array.rst:235
457+
#: ../../library/array.rst:234
458458
msgid "Convert the array to an ordinary list with the same items."
459459
msgstr "不更改元素,將陣列轉為一般的 list。"
460460

461-
#: ../../library/array.rst:240
461+
#: ../../library/array.rst:239
462462
msgid ""
463463
"Convert the array to a unicode string. The array must be a type ``'u'`` "
464464
"array; otherwise a :exc:`ValueError` is raised. Use ``array.tobytes()."
@@ -468,7 +468,7 @@ msgstr ""
468468
"`ValueError` 錯誤。使用 ``array.tobytes().decode(enc)`` 將其他型別的陣列轉為"
469469
"字串。"
470470

471-
#: ../../library/array.rst:245
471+
#: ../../library/array.rst:244
472472
msgid ""
473473
"When an array object is printed or converted to a string, it is represented "
474474
"as ``array(typecode, initializer)``. The *initializer* is omitted if the "
@@ -486,30 +486,33 @@ msgstr ""
486486
"\n"
487487
"::"
488488

489-
#: ../../library/array.rst:262
489+
#: ../../library/array.rst:261
490490
msgid "Module :mod:`struct`"
491491
msgstr ":mod:`struct` 模組"
492492

493-
#: ../../library/array.rst:262
493+
#: ../../library/array.rst:261
494494
msgid "Packing and unpacking of heterogeneous binary data."
495495
msgstr "將包含不同資料類型的二進位資料包裝與解開包裝。"
496496

497-
#: ../../library/array.rst:266
497+
#: ../../library/array.rst:265
498498
msgid "Module :mod:`xdrlib`"
499499
msgstr ":mod:`xdrlib` 模組"
500500

501-
#: ../../library/array.rst:265
501+
#: ../../library/array.rst:264
502502
msgid ""
503503
"Packing and unpacking of External Data Representation (XDR) data as used in "
504504
"some remote procedure call systems."
505505
msgstr ""
506506
"將 External Data Representation (XDR) 的資料包裝與解開包裝,這用在一些遠端操"
507507
"作的系統 (remote procedure call systems)。"
508508

509-
#: ../../library/array.rst:268
509+
#: ../../library/array.rst:267
510510
msgid "`NumPy <https://numpy.org/>`_"
511511
msgstr "`NumPy <https://numpy.org/>`_"
512512

513-
#: ../../library/array.rst:269
513+
#: ../../library/array.rst:268
514514
msgid "The NumPy package defines another array type."
515515
msgstr "NumPy 套件定義了另一個陣列型別"
516+
517+
#~ msgid "The following data items and methods are also supported:"
518+
#~ msgstr "提供下方的資料物件與方法:"

0 commit comments

Comments
 (0)
0