Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
translate library/stdtypes.po - true value test section
  • Loading branch information
mattwang44 committed Jun 12, 2022
commit 0284eef2f38533bc4d260056d3accb8a1283f115
18 changes: 15 additions & 3 deletions library/stdtypes.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-21 17:35+0000\n"
"PO-Revision-Date: 2021-11-26 19:04+0800\n"
"PO-Revision-Date: 2021-11-26 20:12+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand Down Expand Up @@ -62,13 +62,15 @@ msgstr ""

#: ../../library/stdtypes.rst:32
msgid "Truth Value Testing"
msgstr ""
msgstr "真值檢測"

#: ../../library/stdtypes.rst:41
msgid ""
"Any object can be tested for truth value, for use in an :keyword:`if` or :"
"keyword:`while` condition or as operand of the Boolean operations below."
msgstr ""
"任何物件都可以進行檢測以判斷是否為真值,以便在 :keyword:`if` 或 :keyword:"
"`while` 條件中使用,或是作為如下所述 boolean(布林)運算之運算元所用。"

#: ../../library/stdtypes.rst:46
msgid ""
Expand All @@ -77,22 +79,29 @@ msgid ""
"that returns zero, when called with the object. [1]_ Here are most of the "
"built-in objects considered false:"
msgstr ""
"預設情況下,一個物件會被視為真值,除非它的 class 定義了會回傳 ``False`` 的 :"
"meth:`__bool__` method 或是定義了會回傳零的 :meth:`__len__` method。\\ [1]_ "
"以下列出了大部分會被視為 false 的內建物件:"

#: ../../library/stdtypes.rst:55
msgid "constants defined to be false: ``None`` and ``False``."
msgstr ""
msgstr "定義為 false 之常數:\\ ``None`` 與 ``False``\\ 。"

#: ../../library/stdtypes.rst:57
msgid ""
"zero of any numeric type: ``0``, ``0.0``, ``0j``, ``Decimal(0)``, "
"``Fraction(0, 1)``"
msgstr ""
"任何數值型別的零:\\ ``0``\\ 、\\ ``0.0``\\ 、\\ ``0j``\\ 、\\ ``Decimal(0)``"
"\\ 、\\ ``Fraction(0, 1)``"

#: ../../library/stdtypes.rst:60
msgid ""
"empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, "
"``range(0)``"
msgstr ""
"空的序列和集合:\\ ``’’``\\ 、\\ ``()``\\ 、\\ ``[]``\\ 、\\ ``{}``\\ 、\\ "
"``set()``\\ 、\\ ``range(0)``"

#: ../../library/stdtypes.rst:69
msgid ""
Expand All @@ -101,6 +110,9 @@ msgid ""
"otherwise stated. (Important exception: the Boolean operations ``or`` and "
"``and`` always return one of their operands.)"
msgstr ""
"除非另有特別說明,產生 boolean 結果的操作或內建函式都會回傳 ``0`` 或 "
"``False`` 作為假值、\\ ``1`` 或 ``True`` 作為真值。(重要例外: boolean 運算 "
"``or`` 和 ``and`` 回傳的是其中一個運算元。)"

#: ../../library/stdtypes.rst:78
msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"
Expand Down