@@ -11,7 +11,7 @@ msgstr ""
11
11
"Project-Id-Version : Python 3.10\n "
12
12
"Report-Msgid-Bugs-To : \n "
13
13
"POT-Creation-Date : 2022-04-15 00:13+0000\n "
14
- "PO-Revision-Date : 2022-09-24 14:29 +0800\n "
14
+ "PO-Revision-Date : 2022-09-26 23:05 +0800\n "
15
15
"Last-Translator : Allen Wu <allen91.wu@gmail.com>\n "
16
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
17
17
"tw)\n "
@@ -99,9 +99,9 @@ msgid ""
99
99
"until queue items are consumed. If *maxsize* is less than or equal to zero, "
100
100
"the queue size is infinite."
101
101
msgstr ""
102
- "`LIFO (last-in, first-out)` 佇列的建構子。*maxsize* 是一個整數,用於設置佇列 "
103
- "中可放置的項目數的上限 。一旦達到此大小,插入將被鎖定,到佇列中的項目被消耗。 "
104
- "如果 *maxsize* 小於或等於零,則佇列大小為無限。"
102
+ ":abbr: `LIFO (last-in, first-out)` 佇列的建構子。*maxsize* 是一個整數,用於設 "
103
+ "置佇列中可放置的項目數的上限 。一旦達到此大小,插入將被鎖定,到佇列中的項目被 "
104
+ "消耗。 如果 *maxsize* 小於或等於零,則佇列大小為無限。"
105
105
106
106
#: ../../library/queue.rst:54
107
107
msgid ""
@@ -156,7 +156,7 @@ msgid ""
156
156
"put_nowait`) is called on a :class:`Queue` object which is full."
157
157
msgstr ""
158
158
"當對一個已滿的 :class:`Queue` 物件呼叫非阻塞的 :meth:`~Queue.put`\\ (或 :"
159
- "meth:`~Queue.put_nowait`)將引發此例外。"
159
+ "meth:`~Queue.put_nowait`\\ )將引發此例外。"
160
160
161
161
#: ../../library/queue.rst:99
162
162
msgid "Queue Objects"
@@ -167,8 +167,8 @@ msgid ""
167
167
"Queue objects (:class:`Queue`, :class:`LifoQueue`, or :class:"
168
168
"`PriorityQueue`) provide the public methods described below."
169
169
msgstr ""
170
- "佇列物件(\\ :class:`Queue`\\ 、 \\ :class:`LifoQueue`\\ 、 \\ :class:"
171
- "`PriorityQueue` \\ )提供下面描述的公用 method。"
170
+ "佇列物件(:class:`Queue`、 :class:`LifoQueue`、 :class:`PriorityQueue`)提供下 "
171
+ "面描述的公用 method。"
172
172
173
173
#: ../../library/queue.rst:107
174
174
msgid ""
@@ -232,7 +232,7 @@ msgid ""
232
232
"ignored in that case)."
233
233
msgstr ""
234
234
"從佇列中移除並回傳一個項目。如果可選的 args *block* 為 true,且 *timeout* 為 "
235
- "``None``\\ (預設值),則在必要時阻塞,直到有可用的項目。如果 *timeout* 是正"
235
+ "``None``\\ (預設值),則在必要時阻塞,直到有可用的項目。如果 *timeout* 是正"
236
236
"數,則最多會阻塞 *timeout* 秒,如果該時間內沒有可用的項目,則會引發 :exc:"
237
237
"`Empty` 例外。否則(*block* 為 false),如果立即可用,則回傳一個項目,否則引"
238
238
"發 :exc:`Empty` 例外(在這種情況下,*timeout* 將被忽略)。"
@@ -247,7 +247,7 @@ msgid ""
247
247
msgstr ""
248
248
"在 POSIX 系統的 3.0 版之前,以及 Windows 的所有版本,如果 *block* 為 true 且 "
249
249
"*timeout* 為 ``None``,則此操作將在底層鎖上進入不間斷等待。這意味著不會發生例"
250
- "外,特別是 SIGINT(中斷訊號)不會觸發 :exc:`KeyboardInterrupt`\\ 。"
250
+ "外,特別是 SIGINT(中斷訊號)不會觸發 :exc:`KeyboardInterrupt`。"
251
251
252
252
#: ../../library/queue.rst:161 ../../library/queue.rst:268
253
253
msgid "Equivalent to ``get(False)``."
@@ -267,23 +267,23 @@ msgid ""
267
267
"threads. For each :meth:`get` used to fetch a task, a subsequent call to :"
268
268
"meth:`task_done` tells the queue that the processing on the task is complete."
269
269
msgstr ""
270
- "指示指示先前放入佇列的任務已完成 。由佇列消費者執行緒使用。對於用來提取任務的 "
271
- "每個 :meth:`get`,隨後呼叫 :meth:`task_done` 告訴佇列任務的處理已完成。"
270
+ "表示先前放入佇列的任務已完成 。由佇列消費者執行緒使用。對於用來提取任務的每 "
271
+ "個 :meth:`get`,隨後呼叫 :meth:`task_done` 告訴佇列任務的處理已完成。"
272
272
273
273
#: ../../library/queue.rst:173
274
274
msgid ""
275
275
"If a :meth:`join` is currently blocking, it will resume when all items have "
276
276
"been processed (meaning that a :meth:`task_done` call was received for every "
277
277
"item that had been :meth:`put` into the queue)."
278
278
msgstr ""
279
- "如果目前 :meth:`join` 阻塞,則當所有項目都已處理完畢後,它將恢復(這意味著對 "
280
- "於 : meth:`put` 已進入佇列的每個項目,都收到 :meth:`task_done` 的呼叫)。"
279
+ "如果目前 :meth:`join` 阻塞,它將會在所有項目都已處理完畢後恢復(代表對於以 : "
280
+ "meth:`put` 放進佇列的每個項目,都要收到 :meth:`task_done` 的呼叫)。"
281
281
282
282
#: ../../library/queue.rst:177
283
283
msgid ""
284
284
"Raises a :exc:`ValueError` if called more times than there were items placed "
285
285
"in the queue."
286
- msgstr "如果呼叫次數超過佇列中放置的項目數量,則引發 :exc:`ValueError`\\ 。"
286
+ msgstr "如果呼叫次數超過佇列中放置的項目數量,則引發 :exc:`ValueError`。"
287
287
288
288
#: ../../library/queue.rst:183
289
289
msgid "Blocks until all items in the queue have been gotten and processed."
@@ -340,9 +340,9 @@ msgid ""
340
340
"The optional args *block* and *timeout* are ignored and only provided for "
341
341
"compatibility with :meth:`Queue.put`."
342
342
msgstr ""
343
- "將 *item* 放入佇列中。此 method 從不阻塞,並且都會成功(潛在的低階錯誤,像是 "
344
- "分配記憶體失敗除外 )。可選的 args *block* 和 *timeout* 將被忽略,並且僅用於 "
345
- "與 :meth:`Queue.put` 相容 。"
343
+ "將 *item* 放入佇列中。此 method 從不阻塞,並且都會成功(除了潛在的低階錯誤, "
344
+ "像是分配記憶體失敗 )。可選的 args *block* 和 *timeout* 會被忽略,它們僅是為了 "
345
+ "與 :meth:`Queue.put` 相容才存在 。"
346
346
347
347
#: ../../library/queue.rst:252
348
348
msgid ""
@@ -375,7 +375,9 @@ msgstr "Class :class:`multiprocessing.Queue`"
375
375
msgid ""
376
376
"A queue class for use in a multi-processing (rather than multi-threading) "
377
377
"context."
378
- msgstr "用於多工處理(而非多執行緒)上下文的佇列 class。"
378
+ msgstr ""
379
+ "用於多行程處理 (multi-processing)(而非多執行緒)情境 (context) 的佇列 "
380
+ "class。"
379
381
380
382
#: ../../library/queue.rst:277
381
383
msgid ""
@@ -384,6 +386,6 @@ msgid ""
384
386
"`~collections.deque.popleft` operations that do not require locking and also "
385
387
"support indexing."
386
388
msgstr ""
387
- ":class:`collections.deque` 是無界佇列的替代實作,具有快速原子 :meth: "
388
- "`~collections.deque.append` 和 :meth:`~collections.deque.popleft` 操作,這些 "
389
- "操作不需要鎖定 ,並且還支持索引。"
389
+ ":class:`collections.deque` 是無界佇列的替代實作,有快速且具原子性 (atomic) "
390
+ "的 :meth: `~collections.deque.append` 和 :meth:`~collections.deque.popleft` 操 "
391
+ "作,這些操作不需要鎖定 ,並且還支持索引。"
0 commit comments