77msgstr ""
88"Project-Id-Version : Python 3.14\n "
99"Report-Msgid-Bugs-To : \n "
10- "POT-Creation-Date : 2025-09-08 15:25+0800 \n "
10+ "POT-Creation-Date : 2026-08-01 00:29+0000 \n "
1111"PO-Revision-Date : 2024-12-20 19:16+0800\n "
1212"Last-Translator : Li-Hung Wang <li-hung@sciwork.dev>\n "
1313"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -112,20 +112,19 @@ msgstr "鍵函式 (key functions)"
112112
113113#: ../../howto/sorting.rst:50
114114msgid ""
115- "The :meth:`list.sort` method and the "
116- "functions :func:`sorted`, :func:`min`, :func:`max`, :func:`heapq.nsmallest`, "
117- "and :func:`heapq.nlargest` have a *key* parameter to specify a function (or "
118- "other callable) to be called on each list element prior to making "
119- "comparisons."
115+ "The :meth:`list.sort` method and the functions :func:`sorted`, :func:`min`, :"
116+ "func:`max`, :func:`heapq.nsmallest`, and :func:`heapq.nlargest` have a *key* "
117+ "parameter to specify a function (or other callable) to be called on each "
118+ "list element prior to making comparisons."
120119msgstr ""
121- ":meth:`list.sort` 方法和 :func:`sorted`、:func:`min`、:func:`max`、:func:`heapq.nsmallest` 及 "
122- " :func:`heapq.nlargest` 函式都有一個參數 *key* 可以指定一個函式(或其 "
123- "它可呼叫物件 (callable)),其會在每個串列元素做比較前被呼叫。"
120+ ":meth:`list.sort` 方法和 :func:`sorted`、:func:`min`、:func:`max`、:func:"
121+ "`heapq.nsmallest` 及 :func:`heapq.nlargest` 函式都有一個參數 *key* 可以指定一 "
122+ "個函式(或其它可呼叫物件 (callable)),其會在每個串列元素做比較前被呼叫。"
124123
125124#: ../../howto/sorting.rst:56
126125msgid ""
127- "For example, here's a case-insensitive string comparison "
128- "using :meth:`str. casefold`:"
126+ "For example, here's a case-insensitive string comparison using :meth:`str. "
127+ "casefold`:"
129128msgstr "例如使用 :meth:`str.casefold` 來做不區分大小寫的字串比對:"
130129
131130#: ../../howto/sorting.rst:59
@@ -216,11 +215,11 @@ msgstr ""
216215#: ../../howto/sorting.rst:102
217216msgid ""
218217"Objects with named attributes can be made by a regular class as shown above, "
219- "or they can be instances of :class:`~dataclasses.dataclass` or "
220- "a :term: `named tuple`."
218+ "or they can be instances of :class:`~dataclasses.dataclass` or a :term: "
219+ "`named tuple`."
221220msgstr ""
222- "具有命名屬性的物件可以如上方的方式使用一個常規的類別建立,或是他們可以 "
223- "是 : class:`~dataclasses.dataclass` 的實例或是一個 :term:`named tuple`。"
221+ "具有命名屬性的物件可以如上方的方式使用一個常規的類別建立,或是他們可以是 : "
222+ "class:`~dataclasses.dataclass` 的實例或是一個 :term:`named tuple`。"
224223
225224#: ../../howto/sorting.rst:107
226225msgid "Operator Module Functions and Partial Function Evaluation"
@@ -230,14 +229,13 @@ msgstr "Operator 模組函式以及部份函式 (partial function) 評估"
230229msgid ""
231230"The :term:`key function` patterns shown above are very common, so Python "
232231"provides convenience functions to make accessor functions easier and faster. "
233- "The :mod:`operator` module "
234- "has :func:`~operator.itemgetter`, :func:`~operator.attrgetter`, and "
235- "a :func:`~operator.methodcaller` function."
232+ "The :mod:`operator` module has :func:`~operator.itemgetter`, :func:"
233+ "`~operator.attrgetter`, and a :func:`~operator.methodcaller` function."
236234msgstr ""
237235"上述的\\ :term:`鍵函式 <key function>`\\ 模式非常常見,所以 Python 提供了方便"
238- "的函式讓物件存取更簡單且快速。:mod:`operator` 模組裡 "
239- "有 :func:`~operator.itemgetter`、 :func:`~operator.attrgetter ` "
240- "及 :func:`~operator.methodcaller` 函式可以使用。"
236+ "的函式讓物件存取更簡單且快速。:mod:`operator` 模組裡有 :func:`~operator. "
237+ "itemgetter`、 :func:`~operator.attrgetter` 及 :func:`~operator.methodcaller ` "
238+ "函式可以使用。"
241239
242240#: ../../howto/sorting.rst:114
243241msgid "Using those functions, the above examples become simpler and faster:"
@@ -289,9 +287,9 @@ msgid ""
289287"<https://en.wikipedia.org/wiki/Arity>`_ of a multi-argument function making "
290288"it suitable for use as a key-function."
291289msgstr ""
292- "模組 :mod:`functools` 提供了另一個製作鍵函式的好用工 "
293- "具。:func:`~functools. partial` 函式可以減少多引數函式的\\ `引數數目 <https://"
294- "en.wikipedia.org/wiki/ Arity>`_,使其更適合作為鍵函式使用。"
290+ "模組 :mod:`functools` 提供了另一個製作鍵函式的好用工具。:func:`~functools. "
291+ "partial` 函式可以減少多引數函式的\\ `引數數目 <https://en.wikipedia.org/wiki /"
292+ "Arity>`_,使其更適合作為鍵函式使用。"
295293
296294#: ../../howto/sorting.rst:142
297295msgid ""
@@ -514,9 +512,9 @@ msgstr ""
514512
515513#: ../../howto/sorting.rst:249
516514msgid ""
517- "Another name for this idiom is `Schwartzian transform <https://"
518- "en.wikipedia. org/wiki/Schwartzian_transform>`_\\ , after Randal L. Schwartz, "
519- "who popularized it among Perl programmers."
515+ "Another name for this idiom is `Schwartzian transform <https://en.wikipedia. "
516+ "org/wiki/Schwartzian_transform>`_\\ , after Randal L. Schwartz, who "
517+ "popularized it among Perl programmers."
520518msgstr ""
521519"這個用語的另一個名字是 `Schwartzian transform <https://en.wikipedia.org/wiki/"
522520"Schwartzian_transform>`_,是由於 Randal L. Schwartz 讓這個方法在 Perl 程式設"
@@ -563,9 +561,9 @@ msgstr ""
563561
564562#: ../../howto/sorting.rst:272
565563msgid ""
566- "To accommodate those situations, Python "
567- "provides :class:`functools. cmp_to_key` to wrap the comparison function to "
568- "make it usable as a key function::"
564+ "To accommodate those situations, Python provides :class:`functools. "
565+ "cmp_to_key` to wrap the comparison function to make it usable as a key "
566+ "function::"
569567msgstr ""
570568"為了滿足這些情境,Python 提供 :class:`functools.cmp_to_key` 來包裝比較函式,"
571569"讓其可以當作鍵函式來使用: ::"
@@ -692,9 +690,9 @@ msgstr "雜項說明"
692690
693691#: ../../howto/sorting.rst:345
694692msgid ""
695- "For locale aware sorting, use :func:`locale.strxfrm` for a key function "
696- "or : func:`locale.strcoll` for a comparison function. This is necessary "
697- "because \" alphabetical\" sort orderings can vary across cultures even if the "
693+ "For locale aware sorting, use :func:`locale.strxfrm` for a key function or : "
694+ "func:`locale.strcoll` for a comparison function. This is necessary because "
695+ "\" alphabetical\" sort orderings can vary across cultures even if the "
698696"underlying alphabet is the same."
699697msgstr ""
700698"要處理能理解本地語系 (locale aware) 的排序可以使用 :func:`locale.strxfrm` 當"
@@ -733,8 +731,8 @@ msgstr ""
733731#: ../../howto/sorting.rst:364
734732msgid ""
735733"The sort routines use ``<`` when making comparisons between two objects. So, "
736- "it is easy to add a standard sort order to a class by defining "
737- "an :meth: `~object.__lt__` method:"
734+ "it is easy to add a standard sort order to a class by defining an :meth: "
735+ "`~object.__lt__` method:"
738736msgstr ""
739737"排序時會使用 ``<`` 來比較兩個物件,因此要在類別裡面加入排序順序比較規則是簡單"
740738"的,只要透過定義 :meth:`~object.__lt__` 方法:"
@@ -750,18 +748,18 @@ msgstr ""
750748"[('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)]"
751749
752750#: ../../howto/sorting.rst:374
751+ #, fuzzy
753752msgid ""
754- "However, note that ``<`` can fall back to using :meth:`~object.__gt__` "
755- "if : meth:`~object.__lt__` is not implemented (see :func:`object.__lt__` for "
753+ "However, note that ``<`` can fall back to using :meth:`~object.__gt__` if : "
754+ "meth:`~object.__lt__` is not implemented (see :func:`object.__lt__` for "
756755"details on the mechanics). To avoid surprises, :pep:`8` recommends that all "
757- "six comparison methods be implemented. The :func :`~functools.total_ordering` "
756+ "six comparison methods be implemented. The :deco :`~functools.total_ordering` "
758757"decorator is provided to make that task easier."
759758msgstr ""
760759"然而,請注意,當 :meth:`~object.__lt__` 沒有被實作時,``<`` 可以回退 (fall "
761- "back) 使用 :meth:`~object.__gt__`\\ (有關技術上的細節資訊請"
762- "看 :func:`object.__lt__` )。為了避免意外發生,:pep:`8` 建議所有六種的比較函"
763- "式都需要被實作。裝飾器 :func:`~functools.total_ordering` 被提供用來讓任務更為"
764- "簡單。"
760+ "back) 使用 :meth:`~object.__gt__`\\ (有關技術上的細節資訊請看 :func:`object."
761+ "__lt__` )。為了避免意外發生,:pep:`8` 建議所有六種的比較函式都需要被實作。裝"
762+ "飾器 :func:`~functools.total_ordering` 被提供用來讓任務更為簡單。"
765763
766764#: ../../howto/sorting.rst:381
767765msgid ""
0 commit comments