@@ -11,7 +11,7 @@ msgstr ""
11
11
"Project-Id-Version :Python 3.10\n "
12
12
"Report-Msgid-Bugs-To :\n "
13
13
"POT-Creation-Date :2022-05-21 17:35+0000\n "
14
- "PO-Revision-Date :2021-11-2619:04 +0800\n "
14
+ "PO-Revision-Date :2021-11-2620:12 +0800\n "
15
15
"Last-Translator :Matt Wang <mattwang44@gmail.com>\n "
16
16
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
17
17
"tw)\n "
@@ -62,13 +62,15 @@ msgstr ""
62
62
63
63
#: ../../library/stdtypes.rst:32
64
64
msgid "Truth Value Testing"
65
- msgstr ""
65
+ msgstr "真值檢測 "
66
66
67
67
#: ../../library/stdtypes.rst:41
68
68
msgid ""
69
69
"Any object can be tested for truth value, for use in an :keyword:`if` or :"
70
70
"keyword:`while` condition or as operand of the Boolean operations below."
71
71
msgstr ""
72
+ "任何物件都可以進行檢測以判斷是否為真值,以便在 :keyword:`if` 或 :keyword:"
73
+ "`while` 條件中使用,或是作為如下所述 boolean(布林)運算之運算元所用。"
72
74
73
75
#: ../../library/stdtypes.rst:46
74
76
msgid ""
@@ -77,22 +79,29 @@ msgid ""
77
79
"that returns zero, when called with the object. [1]_ Here are most of the "
78
80
"built-in objects considered false:"
79
81
msgstr ""
82
+ "預設情況下,一個物件會被視為真值,除非它的 class 定義了會回傳 ``False`` 的 :"
83
+ "meth:`__bool__` method 或是定義了會回傳零的 :meth:`__len__` method。\\ [1]_ "
84
+ "以下列出了大部分會被視為 false 的內建物件:"
80
85
81
86
#: ../../library/stdtypes.rst:55
82
87
msgid "constants defined to be false: ``None`` and ``False``."
83
- msgstr ""
88
+ msgstr "定義為 false 之常數: \\ ``None`` 與 ``False`` \\ 。 "
84
89
85
90
#: ../../library/stdtypes.rst:57
86
91
msgid ""
87
92
"zero of any numeric type: ``0``, ``0.0``, ``0j``, ``Decimal(0)``, "
88
93
"``Fraction(0, 1)``"
89
94
msgstr ""
95
+ "任何數值型別的零:\\ ``0``\\ 、\\ ``0.0``\\ 、\\ ``0j``\\ 、\\ ``Decimal(0)``"
96
+ "\\ 、\\ ``Fraction(0, 1)``"
90
97
91
98
#: ../../library/stdtypes.rst:60
92
99
msgid ""
93
100
"empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, "
94
101
"``range(0)``"
95
102
msgstr ""
103
+ "空的序列和集合:\\ ``’’``\\ 、\\ ``()``\\ 、\\ ``[]``\\ 、\\ ``{}``\\ 、\\ "
104
+ "``set()``\\ 、\\ ``range(0)``"
96
105
97
106
#: ../../library/stdtypes.rst:69
98
107
msgid ""
@@ -101,6 +110,9 @@ msgid ""
101
110
"otherwise stated. (Important exception: the Boolean operations ``or`` and "
102
111
"``and`` always return one of their operands.)"
103
112
msgstr ""
113
+ "除非另有特別說明,產生 boolean 結果的操作或內建函式都會回傳 ``0`` 或 "
114
+ "``False`` 作為假值、\\ ``1`` 或 ``True`` 作為真值。(重要例外: boolean 運算 "
115
+ "``or`` 和 ``and`` 回傳的是其中一個運算元。)"
104
116
105
117
#: ../../library/stdtypes.rst:78
106
118
msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"