Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions howto/functional.po
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,6 @@ msgid ""
msgstr ""

#: ../../howto/functional.rst:1039
#, fuzzy
msgid ""
">>> import operator, functools\n"
">>> functools.reduce(operator.concat, ['A', 'BB', 'C'])\n"
Expand All @@ -1655,7 +1654,7 @@ msgstr ""
">>> functools.reduce(operator.concat, [])\n"
"Traceback (most recent call last):\n"
" ...\n"
"TypeError: reduce() of empty sequence with no initial value\n"
"TypeError: reduce() of empty iterable with no initial value\n"
">>> functools.reduce(operator.mul, [1, 2, 3], 1)\n"
"6\n"
">>> functools.reduce(operator.mul, [], 1)\n"
Expand Down
6 changes: 2 additions & 4 deletions library/asyncio-threading.po
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-11 00:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down
3 changes: 1 addition & 2 deletions library/bisect.po
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ msgstr ""
"績找到相對應的字母等級:90 以上是 'A'、80 到 89 為 'B',依此類推: ::"

#: ../../library/bisect.rst:206
#, fuzzy
msgid ""
">>> def grade(score):\n"
"... i = bisect([60, 70, 80, 90], score)\n"
Expand All @@ -323,7 +322,7 @@ msgid ""
">>> [grade(score) for score in [33, 99, 77, 70, 89, 90, 100]]\n"
"['F', 'A', 'C', 'C', 'B', 'A', 'A']"
msgstr ""
">>> def grade(score)\n"
">>> def grade(score):\n"
"... i = bisect([60, 70, 80, 90], score)\n"
"... return \"FDCBA\"[i]\n"
"...\n"
Expand Down
8 changes: 2 additions & 6 deletions library/dataclasses.po
Original file line number Diff line number Diff line change
Expand Up @@ -207,20 +207,16 @@ msgid ""
msgstr "如果該類別已經定義了 :meth:`!__repr__`,則此參數會被忽略。"

#: ../../library/dataclasses.rst:105
#, fuzzy
msgid ""
"*eq*: If true (the default), an :meth:`~object.__eq__` method will be "
"generated."
msgstr "*init*:如果為真(預設值),將生成一個 :meth:`~object.__init__` 方法。"
msgstr "*eq*:如果為真(預設值),將生成一個 :meth:`~object.__eq__` 方法。"

#: ../../library/dataclasses.rst:108
#, fuzzy
msgid ""
"This method compares the class by comparing each field in order. Both "
"instances in the comparison must be of the identical type."
msgstr ""
"*eq*:如果為真(預設值),將生成一個 :meth:`~object.__eq__` 方法。此方法按順"
"序比較類別,就好像它是其欄位的元組一樣。比較中的兩個實例必須屬於同一型別。"
msgstr "此方法按順序比較每個欄位來比較類別。比較中的兩個實例必須屬於同一型別。"

#: ../../library/dataclasses.rst:111
msgid ""
Expand Down
39 changes: 13 additions & 26 deletions library/operator.po
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ msgid "Return ``a + b``, for *a* and *b* numbers."
msgstr "對於數字 *a* 和 *b*,回傳 ``a + b``。"

#: ../../library/operator.rst:115
#, fuzzy
msgid "Return ``a & b``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``a & b``。"

#: ../../library/operator.rst:121
msgid "Return ``a // b``."
Expand All @@ -147,23 +146,20 @@ msgstr ""
"結果總是 :class:`int` 型別。在過去的版本中,結果可能為 ``int`` 子類別的實例。"

#: ../../library/operator.rst:139
#, fuzzy
msgid "Return ``~obj``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``~obj``。"

#: ../../library/operator.rst:145
#, fuzzy
msgid "Return ``a << b``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``a << b``。"

#: ../../library/operator.rst:151
msgid "Return ``a % b``."
msgstr "回傳 ``a % b``。"

#: ../../library/operator.rst:157
#, fuzzy
msgid "Return ``a * b``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``a * b``。"

#: ../../library/operator.rst:163
msgid "Return ``a @ b``."
Expand All @@ -174,24 +170,20 @@ msgid "Return *obj* negated (``-obj``)."
msgstr "回傳 *obj* 取負值的結果 (\\ ``-obj``\\ )。"

#: ../../library/operator.rst:177
#, fuzzy
msgid "Return ``a | b``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``a | b``。"

#: ../../library/operator.rst:183
#, fuzzy
msgid "Return ``+obj``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``+obj``。"

#: ../../library/operator.rst:189
#, fuzzy
msgid "Return ``a ** b``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``a ** b``。"

#: ../../library/operator.rst:195
#, fuzzy
msgid "Return ``a >> b``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``a >> b``。"

#: ../../library/operator.rst:201
msgid "Return ``a - b``."
Expand All @@ -204,9 +196,8 @@ msgid ""
msgstr "回傳 ``a / b``,例如 2/3 將等於 .66 而不是 0。這也被稱為「真」除法。"

#: ../../library/operator.rst:214
#, fuzzy
msgid "Return ``a ^ b``."
msgstr "回傳 ``a % b``。"
msgstr "回傳 ``a ^ b``。"

#: ../../library/operator.rst:217
msgid ""
Expand Down Expand Up @@ -515,9 +506,8 @@ msgid "``floordiv(a, b)``"
msgstr "``floordiv(a, b)``"

#: ../../library/operator.rst:408
#, fuzzy
msgid "Bitwise And, or Intersection"
msgstr "按位元取反 (Inversion)"
msgstr "按位元與 (And),或稱交集 (Intersection)"

#: ../../library/operator.rst:408
msgid "``a & b``"
Expand All @@ -528,9 +518,8 @@ msgid "``and_(a, b)``"
msgstr "``and_(a, b)``"

#: ../../library/operator.rst:411
#, fuzzy
msgid "Bitwise Exclusive Or, or Symmetric Difference"
msgstr "按位元互斥或 (Exclusive Or)"
msgstr "按位元互斥或 (Exclusive Or),或稱對稱差集 (Symmetric Difference)"

#: ../../library/operator.rst:411
msgid "``a ^ b``"
Expand All @@ -541,9 +530,8 @@ msgid "``xor(a, b)``"
msgstr "``xor(a, b)``"

#: ../../library/operator.rst:415
#, fuzzy
msgid "Bitwise Inversion, or Complement"
msgstr "按位元取反 (Inversion)"
msgstr "按位元取反 (Inversion),或稱補集 (Complement)"

#: ../../library/operator.rst:415
msgid "``~ a``"
Expand All @@ -554,9 +542,8 @@ msgid "``invert(a)``"
msgstr "``invert(a)``"

#: ../../library/operator.rst:418
#, fuzzy
msgid "Bitwise Or, or Union"
msgstr "按位元或 (Or)"
msgstr "按位元或 (Or),或稱聯集 (Union)"

#: ../../library/operator.rst:418
msgid "``a | b``"
Expand Down
3 changes: 1 addition & 2 deletions library/pyexpat.po
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,10 @@ msgid ""
msgstr ""

#: ../../library/pyexpat.rst:241
#, fuzzy
msgid ""
":class:`!xmlparser` objects have the following methods to tune protections "
"against some common XML vulnerabilities."
msgstr ":class:`!xmlparser` 物件擁有以下方法來減輕一些常見的 XML 漏洞。"
msgstr ":class:`!xmlparser` 物件擁有以下方法來調整對一些常見 XML 漏洞的防護。"

#: ../../library/pyexpat.rst:246
msgid ""
Expand Down
21 changes: 7 additions & 14 deletions library/stdtypes.po
Original file line number Diff line number Diff line change
Expand Up @@ -3573,7 +3573,6 @@ msgid "For example:"
msgstr "舉例來說:"

#: ../../library/stdtypes.rst:2183
#, fuzzy
msgid ""
">>> '0123456789'.isdigit()\n"
"True\n"
Expand All @@ -3584,19 +3583,18 @@ msgid ""
">>> '²'.isdecimal(), '²'.isdigit(), '²'.isnumeric()\n"
"(False, True, True)"
msgstr ""
">>> '0123456789'.isnumeric()\n"
"True\n"
">>> '٠١٢٣٤٥٦٧٨٩'.isnumeric() # 阿拉伯-印度數字零到九\n"
">>> '0123456789'.isdigit()\n"
"True\n"
">>> '⅕'.isnumeric() # 普通分數五分之一\n"
">>> '٠١٢٣٤٥٦٧٨٩'.isdigit() # 阿拉伯-印度數字零到九\n"
"True\n"
">>> '⅕'.isdigit() # 普通分數五分之一\n"
"False\n"
">>> '²'.isdecimal(), '²'.isdigit(), '²'.isnumeric()\n"
"(False, True, True)"

#: ../../library/stdtypes.rst:2194
#, fuzzy
msgid "See also :meth:`isdecimal` and :meth:`isnumeric`."
msgstr "另請參閱 :meth:`index` 和 :meth:`find`。"
msgstr "另請參閱 :meth:`isdecimal` 和 :meth:`isnumeric`。"

#: ../../library/stdtypes.rst:2199
msgid ""
Expand Down Expand Up @@ -3647,7 +3645,6 @@ msgid ""
msgstr ""

#: ../../library/stdtypes.rst:2232
#, fuzzy
msgid ""
">>> '0123456789'.isnumeric()\n"
"True\n"
Expand All @@ -3668,9 +3665,8 @@ msgstr ""
"(False, True, True)"

#: ../../library/stdtypes.rst:2243
#, fuzzy
msgid "See also :meth:`isdecimal` and :meth:`isdigit`."
msgstr "另請參閱 :meth:`index` 和 :meth:`find`。"
msgstr "另請參閱 :meth:`isdecimal` 和 :meth:`isdigit`。"

#: ../../library/stdtypes.rst:2248
msgid ""
Expand Down Expand Up @@ -8581,12 +8577,9 @@ msgid ""
msgstr ""

#: ../../library/stdtypes.rst:5880
#, fuzzy
msgid ""
"This is true for :ref:`user-defined generics <user-defined-generics>` also."
msgstr ""
":ref:`Generics`、:ref:`使用者定義泛型 <user-defined-generics>`\\ 和 :class:"
"`typing.Generic`"
msgstr "這對\\ :ref:`使用者定義泛型 <user-defined-generics>`\\ 也是成立的。"

#: ../../library/stdtypes.rst:5882
msgid ""
Expand Down
4 changes: 1 addition & 3 deletions library/unittest.mock.po
Original file line number Diff line number Diff line change
Expand Up @@ -2989,12 +2989,10 @@ msgstr ""
"True"

#: ../../library/unittest.mock.rst:2227
#, fuzzy
msgid ""
"The return value of :meth:`!__iter__` can be any iterable object and isn't "
"required to be an iterator:"
msgstr ""
":meth:`MagicMock.__iter__` 的回傳值可以是任何可疊代物件,且不需是一個疊代器:"
msgstr ":meth:`!__iter__` 的回傳值可以是任何可疊代物件,且不需是一個疊代器:"

#: ../../library/unittest.mock.rst:2237
msgid ""
Expand Down