4
4
#
5
5
# Translators:
6
6
# Leon H., 2017
7
+ # Adrian Liaw <adrianliaw2000@gmail.com>, 2018
8
+ # Matt Wang <mattwang44@gmail.com>, 2021
7
9
msgid ""
8
10
msgstr ""
9
11
"Project-Id-Version : Python 3.10\n "
10
12
"Report-Msgid-Bugs-To : \n "
11
13
"POT-Creation-Date : 2022-05-21 17:35+0000\n "
12
- "PO-Revision-Date : 2018-05-23 16:11+0000 \n "
13
- "Last-Translator : Adrian Liaw <adrianliaw2000 @gmail.com>\n "
14
+ "PO-Revision-Date : 2022-06-12 15:22+0800 \n "
15
+ "Last-Translator : Matt Wang <mattwang44 @gmail.com>\n "
14
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
15
17
"tw)\n "
16
18
"Language : zh_TW\n "
17
19
"MIME-Version : 1.0\n "
18
20
"Content-Type : text/plain; charset=UTF-8\n "
19
21
"Content-Transfer-Encoding : 8bit\n "
20
22
"Plural-Forms : nplurals=1; plural=0;\n "
23
+ "X-Generator : Poedit 3.1\n "
21
24
22
25
#: ../../library/stdtypes.rst:8
23
26
msgid "Built-in Types"
24
- msgstr "內建型態 "
27
+ msgstr "內建型別 "
25
28
26
29
#: ../../library/stdtypes.rst:10
27
30
msgid ""
28
31
"The following sections describe the standard types that are built into the "
29
32
"interpreter."
30
- msgstr ""
33
+ msgstr "以下章節描述了直譯器中内建的標準型別。 "
31
34
32
35
#: ../../library/stdtypes.rst:15
33
36
msgid ""
34
37
"The principal built-in types are numerics, sequences, mappings, classes, "
35
38
"instances and exceptions."
36
- msgstr ""
39
+ msgstr "主要內建型別為數字、序列、映射、class(類別)、實例和例外。 "
37
40
38
41
#: ../../library/stdtypes.rst:18
39
42
msgid ""
40
43
"Some collection classes are mutable. The methods that add, subtract, or "
41
44
"rearrange their members in place, and don't return a specific item, never "
42
45
"return the collection instance itself but ``None``."
43
46
msgstr ""
47
+ "有些集合類別是 mutable(可變的)。那些用於原地 (in-place) 加入、移除或重新排"
48
+ "列其成員且不回傳特定項的 method(方法),也只會回傳 ``None`` 而非集合實例自"
49
+ "己。"
44
50
45
51
#: ../../library/stdtypes.rst:22
46
52
msgid ""
@@ -50,16 +56,21 @@ msgid ""
50
56
"slightly different :func:`str` function). The latter function is implicitly "
51
57
"used when an object is written by the :func:`print` function."
52
58
msgstr ""
59
+ "某些操作已被多種物件型別支援;特別是實務上所有物件都已經可以做相等性比較、真"
60
+ "值檢測及被轉換為字串(使用 :func:`repr` 函式或稍有差異的 :func:`str` 函式),"
61
+ "後者為當物件傳入 :func:`print` 函式印出時在背後被調用的函式。"
53
62
54
63
#: ../../library/stdtypes.rst:32
55
64
msgid "Truth Value Testing"
56
- msgstr ""
65
+ msgstr "真值檢測 "
57
66
58
67
#: ../..
8000
/library/stdtypes.rst:41
59
68
msgid ""
60
69
"Any object can be tested for truth value, for use in an :keyword:`if` or :"
61
70
"keyword:`while` condition or as operand of the Boolean operations below."
62
71
msgstr ""
72
+ "任何物件都可以進行檢測以判斷是否為真值,以便在 :keyword:`if` 或 :keyword:"
73
+ "`while` 條件中使用,或是作為如下所述 boolean(布林)運算之運算元所用。"
63
74
64
75
#: ../../library/stdtypes.rst:46
65
76
msgid ""
@@ -68,22 +79,27 @@ msgid ""
68
79
"that returns zero, when called with the object. [1]_ Here are most of the "
69
80
"built-in objects considered false:"
70
81
msgstr ""
82
+ "預設情況下,一個物件會被視為真值,除非它的 class 定義了會回傳 ``False`` 的 :"
83
+ "meth:`__bool__` method 或是定義了會回傳零的 :meth:`__len__` method。[1]_ "
84
+ "以下列出了大部分會被視為 false 的內建物件:"
71
85
72
86
#: ../../library/stdtypes.rst:55
73
87
msgid "constants defined to be false: ``None`` and ``False``."
74
- msgstr ""
88
+ msgstr "定義為 false 之常數:``None`` 與 ``False``。 "
75
89
76
90
#: ../../library/stdtypes.rst:57
77
91
msgid ""
78
92
"zero of any numeric type: ``0``, ``0.0``, ``0j``, ``Decimal(0)``, "
79
93
"``Fraction(0, 1)``"
80
94
msgstr ""
95
+ "任何數值型別的零:``0``、``0.0``、``0j``、``Decimal(0)``、``Fraction(0, 1)``"
81
96
82
97
#: ../../library/stdtypes.rst:60
83
98
msgid ""
84
99
"empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, "
85
100
"``range(0)``"
86
101
msgstr ""
102
+ "空的序列和集合:``''``、``()``、``[]``、``{}``、``set()``、``range(0)``"
87
103
88
104
#: ../../library/stdtypes.rst:69
89
105
msgid ""
@@ -92,6 +108,9 @@ msgid ""
92
108
"otherwise stated. (Important exception: the Boolean operations ``or`` and "
93
109
"``and`` always return one of their operands.)"
94
110
msgstr ""
111
+ "除非另有特別說明,產生 boolean 結果的操作或內建函式都會回傳 ``0`` 或 "
112
+ "``False`` 作為假值、``1`` 或 ``True`` 作為真值。(重要例外: boolean 運算 "
113
+ "``or`` 和 ``and`` 回傳的是其中一個運算元。)"
95
114
96
115
#: ../../library/stdtypes.rst:78
97
116
msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"
0 commit comments