Skip to content

Commit 78ab3d7

Browse files
committed
docs: add back some heapq translations which were accidentally deleted
1 parent 80e1d32 commit 78ab3d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/heapq.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ msgid ""
188188
"to ``sorted(itertools.chain(*iterables), reverse=True)``, all iterables must "
189189
"be sorted from largest to smallest."
190190
msgstr ""
191+
"*reverse* 是一個布林值。如果設定為 ``True`` ,那輸入的元素被 merge 時每一個比"
192+
"較結果都是相反的。"
191193

192194
#: ../../library/heapq.rst:107
193195
msgid "Added the optional *key* and *reverse* parameters."
@@ -216,6 +218,9 @@ msgid ""
216218
"example, ``key=str.lower``). Equivalent to: ``sorted(iterable, key=key)[:"
217219
"n]``."
218220
msgstr ""
221+
"回傳一個包含資料 *iterable* 中前 *n* 小元素的 list 。如果有指定 *key* 參數,"
222+
"*key* 會是只有一個參數的函式,用來從每一個 *iterable* 的元素中決定一個比較的"
223+
"依據:``key=str.lower`` 等價於 ``sorted(iterable, key=key)[:n]``"
219224

220225
#: ../../library/heapq.rst:128
221226
msgid ""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy