Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0284eef

Browse files
committed
translatelibrary/stdtypes.po - true value test section
1 parent7725913 commit0284eef

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

‎library/stdtypes.po

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version:Python 3.10\n"
1212
"Report-Msgid-Bugs-To:\n"
1313
"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"
1515
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1717
"tw)\n"
@@ -62,13 +62,15 @@ msgstr ""
6262

6363
#:../../library/stdtypes.rst:32
6464
msgid"Truth Value Testing"
65-
msgstr""
65+
msgstr"真值檢測"
6666

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

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

8186
#:../../library/stdtypes.rst:55
8287
msgid"constants defined to be false: ``None`` and ``False``."
83-
msgstr""
88+
msgstr"定義為 false 之常數:\\ ``None`` 與 ``False``\\"
8489

8590
#:../../library/stdtypes.rst:57
8691
msgid""
8792
"zero of any numeric type: ``0``, ``0.0``, ``0j``, ``Decimal(0)``, "
8893
"``Fraction(0, 1)``"
8994
msgstr""
95+
"任何數值型別的零:\\ ``0``\\\\ ``0.0``\\\\ ``0j``\\\\ ``Decimal(0)``"
96+
"\\\\ ``Fraction(0, 1)``"
9097

9198
#:../../library/stdtypes.rst:60
9299
msgid""
93100
"empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, "
94101
"``range(0)``"
95102
msgstr""
103+
"空的序列和集合:\\ ``’’``\\\\ ``()``\\\\ ``[]``\\\\ ``{}``\\\\ "
104+
"``set()``\\\\ ``range(0)``"
96105

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp