Skip to content

Commit 9b96276

Browse files
sync with cpython 4152bbb7
1 parent 3c55f3e commit 9b96276

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

library/bisect.po

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.14\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2026-02-07 00:19+0000\n"
13+
"POT-Creation-Date: 2026-03-01 00:20+0000\n"
1414
"PO-Revision-Date: 2023-08-01 12:53+0800\n"
1515
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -51,9 +51,9 @@ msgid ""
5151
"functions only call the :meth:`~object.__lt__` method and will return an "
5252
"insertion point between values in an array."
5353
msgstr ""
54-
"這個模組被稱為 :mod:`!bisect` 是因為它使用基本二分演算法來完成其工作。不像其它"
55-
"搜尋特定值的二分法工具,本模組中的函式旨在定位插入點。因此,這些函式永遠不會"
56-
"呼叫 :meth:`~object.__eq__` 方法來確認是否找到一個值。相反地,這些函式只呼"
54+
"這個模組被稱為 :mod:`!bisect` 是因為它使用基本二分演算法來完成其工作。不像其"
55+
"它搜尋特定值的二分法工具,本模組中的函式旨在定位插入點。因此,這些函式永遠不"
56+
"會呼叫 :meth:`~object.__eq__` 方法來確認是否找到一個值。相反地,這些函式只呼"
5757
"叫 :meth:`~object.__lt__` 方法,並在陣列中的值回傳一個插入點。"
5858

5959
#: ../../library/bisect.rst:29
@@ -314,10 +314,11 @@ msgstr ""
314314
"績找到相對應的字母等級:90 以上是 'A'、80 到 89 為 'B',依此類推: ::"
315315

316316
#: ../../library/bisect.rst:206
317+
#, fuzzy
317318
msgid ""
318-
">>> def grade(score, breakpoints=[60, 70, 80, 90], grades='FDCBA'):\n"
319-
"... i = bisect(breakpoints, score)\n"
320-
"... return grades[i]\n"
319+
">>> def grade(score)\n"
320+
"... i = bisect([60, 70, 80, 90], score)\n"
321+
"... return \"FDCBA\"[i]\n"
321322
"...\n"
322323
">>> [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]]\n"
323324
"['F', 'A', 'C', 'C', 'B', 'A', 'A']"

0 commit comments

Comments
 (0)