@@ -11,7 +11,7 @@ msgstr ""
1111"Project-Id-Version : Python 3.10\n "
1212"Report-Msgid-Bugs-To : \n "
1313"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 "
1515"Last-Translator : Allen Wu <allen91.wu@gmail.com>\n "
1616"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
1717"tw)\n "
@@ -99,9 +99,9 @@ msgid ""
9999"until queue items are consumed. If *maxsize* is less than or equal to zero, "
100100"the queue size is infinite."
101101msgstr ""
102- "`LIFO (last-in, first-out)` 佇列的建構子。*maxsize* 是一個整數,用於設置佇列 "
103- "中可放置的項目數的上限 。一旦達到此大小,插入將被鎖定,到佇列中的項目被消耗。 "
104- "如果 *maxsize* 小於或等於零,則佇列大小為無限。"
102+ ":abbr: `LIFO (last-in, first-out)` 佇列的建構子。*maxsize* 是一個整數,用於設 "
103+ "置佇列中可放置的項目數的上限 。一旦達到此大小,插入將被鎖定,到佇列中的項目被 "
104+ "消耗。 如果 *maxsize* 小於或等於零,則佇列大小為無限。"
105105
106106#: ../../library/queue.rst:54
107107msgid ""
@@ -156,7 +156,7 @@ msgid ""
156156"put_nowait`) is called on a :class:`Queue` object which is full."
157157msgstr ""
158158"當對一個已滿的 :class:`Queue` 物件呼叫非阻塞的 :meth:`~Queue.put`\\ (或 :"
159- "meth:`~Queue.put_nowait`)將引發此例外。"
159+ "meth:`~Queue.put_nowait`\\ )將引發此例外。"
160160
161161#: ../../library/queue.rst:99
162162msgid "Queue Objects"
@@ -167,8 +167,8 @@ msgid ""
167167"Queue objects (:class:`Queue`, :class:`LifoQueue`, or :class:"
168168"`PriorityQueue`) provide the public methods described below."
169169msgstr ""
170- "佇列物件(\\ :class:`Queue`\\ 、 \\ :class:`LifoQueue`\\ 、 \\ :class:"
171- "`PriorityQueue` \\ )提供下面描述的公用 method。"
170+ "佇列物件(:class:`Queue`、 :class:`LifoQueue`、 :class:`PriorityQueue`)提供下 "
171+ "面描述的公用 method。"
172172
173173#: ../../library/queue.rst:107
174174msgid ""
@@ -232,7 +232,7 @@ msgid ""
232232"ignored in that case)."
233233msgstr ""
234234"從佇列中移除並回傳一個項目。如果可選的 args *block* 為 true,且 *timeout* 為 "
235- "``None``\\ (預設值),則在必要時阻塞,直到有可用的項目。如果 *timeout* 是正"
235+ "``None``\\ (預設值),則在必要時阻塞,直到有可用的項目。如果 *timeout* 是正"
236236"數,則最多會阻塞 *timeout* 秒,如果該時間內沒有可用的項目,則會引發 :exc:"
237237"`Empty` 例外。否則(*block* 為 false),如果立即可用,則回傳一個項目,否則引"
238238"發 :exc:`Empty` 例外(在這種情況下,*timeout* 將被忽略)。"
@@ -247,7 +247,7 @@ msgid ""
247247msgstr ""
248248"在 POSIX 系統的 3.0 版之前,以及 Windows 的所有版本,如果 *block* 為 true 且 "
249249"*timeout* 為 ``None``,則此操作將在底層鎖上進入不間斷等待。這意味著不會發生例"
250- "外,特別是 SIGINT(中斷訊號)不會觸發 :exc:`KeyboardInterrupt`\\ 。"
250+ "外,特別是 SIGINT(中斷訊號)不會觸發 :exc:`KeyboardInterrupt`。"
251251
252252#: ../../library/queue.rst:161 ../../library/queue.rst:268
253253msgid "Equivalent to ``get(False)``."
@@ -267,23 +267,23 @@ msgid ""
267267"threads. For each :meth:`get` used to fetch a task, a subsequent call to :"
268268"meth:`task_done` tells the queue that the processing on the task is complete."
269269msgstr ""
270- "指示指示先前放入佇列的任務已完成 。由佇列消費者執行緒使用。對於用來提取任務的 "
271- "每個 :meth:`get`,隨後呼叫 :meth:`task_done` 告訴佇列任務的處理已完成。"
270+ "表示先前放入佇列的任務已完成 。由佇列消費者執行緒使用。對於用來提取任務的每 "
271+ "個 :meth:`get`,隨後呼叫 :meth:`task_done` 告訴佇列任務的處理已完成。"
272272
273273#: ../../library/queue.rst:173
274274msgid ""
275275"If a :meth:`join` is currently blocking, it will resume when all items have "
276276"been processed (meaning that a :meth:`task_done` call was received for every "
277277"item that had been :meth:`put` into the queue)."
278278msgstr ""
279- "如果目前 :meth:`join` 阻塞,則當所有項目都已處理完畢後,它將恢復(這意味著對 "
280- "於 : meth:`put` 已進入佇列的每個項目,都收到 :meth:`task_done` 的呼叫)。"
279+ "如果目前 :meth:`join` 阻塞,它將會在所有項目都已處理完畢後恢復(代表對於以 : "
280+ "meth:`put` 放進佇列的每個項目,都要收到 :meth:`task_done` 的呼叫)。"
281281
282282#: ../../library/queue.rst:177
283283msgid ""
284284"Raises a :exc:`ValueError` if called more times than there were items placed "
285285"in the queue."
286- msgstr "如果呼叫次數超過佇列中放置的項目數量,則引發 :exc:`ValueError`\\ 。"
286+ msgstr "如果呼叫次數超過佇列中放置的項目數量,則引發 :exc:`ValueError`。"
287287
288288#: ../../library/queue.rst:183
289289msgid "Blocks until all items in the queue have been gotten and processed."
@@ -340,9 +340,9 @@ msgid ""
340340"The optional args *block* and *timeout* are ignored and only provided for "
341341"compatibility with :meth:`Queue.put`."
342342msgstr ""
343- "將 *item* 放入佇列中。此 method 從不阻塞,並且都會成功(潛在的低階錯誤,像是 "
344- "分配記憶體失敗除外 )。可選的 args *block* 和 *timeout* 將被忽略,並且僅用於 "
345- "與 :meth:`Queue.put` 相容 。"
343+ "將 *item* 放入佇列中。此 method 從不阻塞,並且都會成功(除了潛在的低階錯誤, "
344+ "像是分配記憶體失敗 )。可選的 args *block* 和 *timeout* 會被忽略,它們僅是為了 "
345+ "與 :meth:`Queue.put` 相容才存在 。"
346346
347347#: ../../library/queue.rst:252
348348msgid ""
@@ -375,7 +375,9 @@ msgstr "Class :class:`multiprocessing.Queue`"
375375msgid ""
376376"A queue class for use in a multi-processing (rather than multi-threading) "
377377"context."
378- msgstr "用於多工處理(而非多執行緒)上下文的佇列 class。"
378+ msgstr ""
379+ "用於多行程處理 (multi-processing)(而非多執行緒)情境 (context) 的佇列 "
380+ "class。"
379381
380382#: ../../library/queue.rst:277
381383msgid ""
@@ -384,6 +386,6 @@ msgid ""
384386"`~collections.deque.popleft` operations that do not require locking and also "
385387"support indexing."
386388msgstr ""
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