@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.11\n "
13
13
"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 "
15
15
"PO-Revision-Date : 2021-11-23 18:40+0800\n "
16
16
"Last-Translator : Benson Chen <bc842017@gmail.com>\n "
17
17
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -220,10 +220,11 @@ msgstr ""
220
220
"即為 ``wchar_t`` 的別名。"
221
221
222
222
#: ../../library/array.rst:61
223
+ #, fuzzy
223
224
msgid ""
224
225
"The actual representation of values is determined by the machine "
225
226
"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."
227
228
msgstr ""
228
229
"實際上數值的表示方法是被機器的架構所決定(更精準地說,被 C 的實作方法決定)。"
229
230
"實際的大小可以透過 :attr:`itemsize` 屬性存取。"
@@ -261,15 +262,7 @@ msgstr ""
261
262
"meth:`frombytes` 或 :meth:`fromunicode` 方法(參照下方)將元素新增到其中。其"
262
263
"他情況時, 一個 iterable initializer 將被傳入 :meth:`extend` 方法之中。"
263
264
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
273
266
msgid ""
274
267
"Array objects support the ordinary sequence operations of indexing, slicing, "
275
268
"concatenation, and multiplication. When using slice assignment, the "
@@ -284,30 +277,35 @@ msgstr ""
284
277
"實作了緩衝區介面,可以在任何支援 :term:`bytes-like objects <bytes-like "
285
278
"object>` 的地方使用。"
286
279
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``\\ 。"
290
287
291
- #: ../../library/array.rst:101
288
+ #: ../../library/array.rst:99
292
289
msgid "The typecode character used to create the array."
293
290
msgstr "typecode 字元被用在建立陣列時。"
294
291
295
- #: ../../library/array.rst:106
292
+ #: ../../library/array.rst:104
296
293
msgid "The length in bytes of one array item in the internal representation."
297
294
msgstr "陣列當中的一個元素在內部需要的位元組長度。"
298
295
299
- #: ../../library/array.rst:111
296
+ #: ../../library/array.rst:109
300
297
msgid "Append a new item with value *x* to the end of the array."
301
298
msgstr "新增一個元素 *x* 到陣列的最尾端。"
302
299
303
- #: ../../library/array.rst:116
300
+ #: ../../library/array.rst:114
301
+ #, fuzzy
304
302
msgid ""
305
303
"Return a tuple ``(address, length)`` giving the current memory address and "
306
304
"the length in elements of the buffer used to hold array's contents. The "
307
305
"size of the memory buffer in bytes can be computed as ``array.buffer_info()"
308
306
"[1] * array.itemsize``. This is occasionally useful when working with low-"
309
307
"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 "
311
309
"as long as the array exists and no length-changing operations are applied to "
312
310
"it."
313
311
msgstr ""
@@ -317,7 +315,7 @@ msgstr ""
317
315
"用,例如 :c:func:`ioctl` 指令。只要陣列存在且沒有使用任何更改長度的操作時,回"
318
316
"傳的數值就有效。"
319
317
320
- #: ../../library/array.rst:126
318
+ #: ../../library/array.rst:124
321
319
msgid ""
322
320
"When using array objects from code written in C or C++ (the only way to "
323
321
"effectively make use of this information), it makes more sense to use the "
@@ -329,7 +327,7 @@ msgstr ""
329
327
"適當的做法是使用陣列物件支援的緩衝區介面。這個方法維護了向後兼容性,並應該在"
330
328
"新的程式碼中避免。關於緩衝區介面的文件在\\ :ref:`bufferobjects`\\ 。"
331
329
332
- #: ../../library/array.rst:135
330
+ #: ../../library/array.rst:133
333
331
msgid ""
334
332
"\" Byteswap\" all items of the array. This is only supported for values "
335
333
"which are 1, 2, 4, or 8 bytes in size; for other types of values, :exc:"
@@ -340,11 +338,11 @@ msgstr ""
340
338
"列,其他型別的值會導致 :exc:`RuntimeError`\\ 。這在從機器讀取位元順序不同的檔"
341
339
"案時很有用。"
342
340
343
- #: ../../library/array.rst:143
341
+ #: ../../library/array.rst:141
344
342
msgid "Return the number of occurrences of *x* in the array."
345
343
msgstr "回傳 *x* 在陣列中出現了幾次。"
346
344
347
- #: ../../library/array.rst:148
345
+ #: ../../library/array.rst:146
348
346
msgid ""
349
347
"Append items from *iterable* to the end of the array. If *iterable* is "
350
348
"another array, it must have *exactly* the same type code; if not, :exc:"
@@ -356,7 +354,7 @@ msgstr ""
356
354
"是一個陣列,它必須可以被疊代 (iterable) 且其中的元素必須是可以被加入陣列中的"
357
355
"正確型別。"
358
356
359
- #: ../../library/array.rst:156
357
+ #: ../../library/array.rst:154
360
358
msgid ""
361
359
"Appends items from the string, interpreting the string as an array of "
362
360
"machine values (as if it had been read from a file using the :meth:"
@@ -365,11 +363,12 @@ msgstr ""
365
363
"從字串中新增元素。讀取時會將字串當作一個機器數值組成的陣列(就像從檔案中使"
366
364
"用 :meth:`fromfile` 方法讀出的資料)。"
367
365
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."
370
369
msgstr "將 :meth:`fromstring` 更名為 :meth:`frombytes`\\ ,使其更加清晰易懂。"
371
370
372
- #: ../../library/array.rst:165
371
+ #: ../../library/array.rst:163
373
372
msgid ""
374
373
"Read *n* items (as machine values) from the :term:`file object` *f* and "
375
374
"append them to the end of the array. If less than *n* items are available, :"
@@ -380,15 +379,15 @@ msgstr ""
380
379
"入陣列的最尾端。如果只有少於 *n* 個有效的元素會導致 :exc:`EOFError`\\ ,但有"
381
380
"效的元素仍然會被加入陣列中。"
382
381
383
- #: ../../library/array.rst:173
382
+ #: ../../library/array.rst:171
384
383
msgid ""
385
384
"Append items from the list. This is equivalent to ``for x in list: a."
386
385
"append(x)`` except that if there is a type error, the array is unchanged."
387
386
msgstr ""
388
387
"從 list 中新增元素。這等價於 ``for x in list: a.append(x)``\\ ,除了有型別錯"
389
388
"誤產生時,陣列會保持原狀不會被更改。"
390
389
391
- #: ../../library/array.rst:179
390
+ #: ../../library/array.rst:177
392
391
msgid ""
393
392
"Extends this array with data from the given unicode string. The array must "
394
393
"be a type ``'u'`` array; otherwise a :exc:`ValueError` is raised. Use "
@@ -399,7 +398,7 @@ msgstr ""
399
398
"導致 :exc:`ValueError` 錯誤。使用 ``array.frombytes(unicodestring."
400
399
"encode(enc))`` 來新增 Unicode 資料到一個其他型別的陣列。"
401
400
402
- #: ../../library/array.rst:187
401
+ #: ../../library/array.rst:185
403
402
msgid ""
404
403
"Return the smallest *i* such that *i* is the index of the first occurrence "
405
404
"of *x* in the array. The optional arguments *start* and *stop* can be "
@@ -410,17 +409,17 @@ msgstr ""
410
409
"數 *start* 及 *stop* 則可以被用來在指定的陣列空間中搜尋 *x*\\ 。如果 *x* 不存"
411
410
"在將導致 :exc:`ValueError`\\ 。"
412
411
413
- #: ../../library/array.rst:192
412
+ #: ../../library/array.rst:190
414
413
msgid "Added optional *start* and *stop* parameters."
415
414
msgstr "新增選擇性的參數 *start* 及 *stop*\\ 。"
416
415
417
- #: ../../library/array.rst:197
416
+ #: ../../library/array.rst:196
418
417
msgid ""
419
418
"Insert a new item with value *x* in the array before position *i*. Negative "
420
419
"values are treated as being relative to the end of the array."
421
420
msgstr "在位置 *i* 之前插入一個元素 *x*\\ 。負數的索引值會從陣列尾端開始數。"
422
421
423
- #: ../../library/array.rst:203
422
+ #: ../../library/array.rst:202
424
423
msgid ""
425
424
"Removes the item with the index *i* from the array and returns it. The "
426
425
"optional argument defaults to ``-1``, so that by default the last item is "
@@ -429,15 +428,15 @@ msgstr ""
429
428
"移除並回傳陣列索引值 *i* 的元素。選擇性的引數 *i* 預設為 ``-1``\\ ,所以預設"
430
429
"會刪除並回傳最後一個元素。"
431
430
432
- #: ../../library/array.rst:210
431
+ #: ../../library/array.rst:209
433
432
msgid "Remove the first occurrence of *x* from the array."
434
433
msgstr "從陣列中刪除第一個出現的 *x*\\ 。"
435
434
436
- #: ../../library/array.rst:215
435
+ #: ../../library/array.rst:214
437
436
msgid "Reverse the order of the items in the array."
438
437
msgstr "反轉陣列中元素的順序。"
439
438
440
- #: ../../library/array.rst:220
439
+ #: ../../library/array.rst:219
441
440
msgid ""
442
441
"Convert the array to an array of machine values and return the bytes "
443
442
"representation (the same sequence of bytes that would be written to a file "
@@ -446,19 +445,20 @@ msgstr ""
446
445
"將陣列轉為另一個機器數值組成的陣列並回傳它的位元組表示(跟用 :meth:`tofile` "
447
446
"方法寫入檔案時的位元序列相同)。"
448
447
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."
451
451
msgstr "為了明確性,過去的 :meth:`tostring` 已更名為 :meth:`tobytes`\\ 。"
452
452
453
- #: ../../library/array.rst:230
453
+ #: ../../library/array.rst:229
454
454
msgid "Write all items (as machine values) to the :term:`file object` *f*."
455
455
msgstr "將所有元素(作為機器數值)寫入 :term:`file object` *f*\\ 。"
456
456
457
- #: ../../library/array.rst:235
457
+ #: ../../library/array.rst:234
458
458
msgid "Convert the array to an ordinary list with the same items."
459
459
msgstr "不更改元素,將陣列轉為一般的 list。"
460
460
461
- #: ../../library/array.rst:240
461
+ #: ../../library/array.rst:239
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()."
@@ -468,7 +468,7 @@ msgstr ""
468
468
"`ValueError` 錯誤。使用 ``array.tobytes().decode(enc)`` 將其他型別的陣列轉為"
469
469
"字串。"
470
470
471
- #: ../../library/array.rst:245
471
+ #: ../../library/array.rst:244
472
472
msgid ""
473
473
"When an array object is printed or converted to a string, it is represented "
474
474
"as ``array(typecode, initializer)``. The *initializer* is omitted if the "
@@ -486,30 +486,33 @@ msgstr ""
486
486
"\n"
487
487
"::"
488
488
489
- #: ../../library/array.rst:262
489
+ #: ../../library/array.rst:261
490
490
msgid "Module :mod:`struct`"
491
491
msgstr ":mod:`struct` 模組"
492
492
493
- #: ../../library/array.rst:262
493
+ #: ../../library/array.rst:261
494
494
msgid "Packing and unpacking of heterogeneous binary data."
495
495
msgstr "將包含不同資料類型的二進位資料包裝與解開包裝。"
496
496
497
- #: ../../library/array.rst:266
497
+ #: ../../library/array.rst:265
498
498
msgid "Module :mod:`xdrlib`"
499
499
msgstr ":mod:`xdrlib` 模組"
500
500
501
- #: ../../library/array.rst:265
501
+ #: ../../library/array.rst:264
502
502
msgid ""
503
503
"Packing and unpacking of External Data Representation (XDR) data as used in "
504
504
"some remote procedure call systems."
505
505
msgstr ""
506
506
"將 External Data Representation (XDR) 的資料包裝與解開包裝,這用在一些遠端操"
507
507
"作的系統 (remote procedure call systems)。"
508
508
509
- #: ../../library/array.rst:268
509
+ #: ../../library/array.rst:267
510
510
msgid "`NumPy <https://numpy.org/>`_"
511
511
msgstr "`NumPy <https://numpy.org/>`_"
512
512
513
- #: ../../library/array.rst:269
513
+ #: ../../library/array.rst:268
514
514
msgid "The NumPy package defines another array type."
515
515
msgstr "NumPy 套件定義了另一個陣列型別"
516
+
517
+ #~ msgid "The following data items and methods are also supported:"
518
+ #~ msgstr "提供下方的資料物件與方法:"
0 commit comments