1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2024, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Matt Wang <mattwang44@gmail.com>, 2024
6
6
msgid ""
7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2023-09-03 00:03+0000\n "
11
- "PO-Revision-Date : 2018 -05-23 14:32+0000 \n "
12
- "Last-Translator : Adrian Liaw <adrianliaw2000 @gmail.com>\n "
11
+ "PO-Revision-Date : 2024 -05-11 14:32+0800 \n "
12
+ "Last-Translator : Matt Wang <mattwang44 @gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
15
15
"Language : zh_TW\n "
@@ -27,6 +27,8 @@ msgid ""
27
27
"See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and :c:func:"
28
28
"`PyObject_DelItem`."
29
29
msgstr ""
30
+ "另請參閱 :c:func:`PyObject_GetItem`、:c:func:`PyObject_SetItem` 和 :c:func:"
31
+ "`PyObject_DelItem`。"
30
32
31
33
#: ../../c-api/mapping.rst:14
32
34
msgid ""
@@ -36,88 +38,110 @@ msgid ""
36
38
"to determine what type of keys the class supports. This function always "
37
39
"succeeds."
38
40
msgstr ""
41
+ "如果物件有提供對映協定或支援切片 (slicing) 則回傳 ``1``,否則回傳 ``0``。請注"
42
+ "意,對於具有 :meth:`~object.__getitem__` 方法的 Python 類別,它會回傳 ``1``,"
43
+ "因為通常無法確定該類別支援什麼類型的鍵。這個函式總會是成功的。"
39
44
40
45
#: ../../c-api/mapping.rst:25
41
46
msgid ""
42
47
"Returns the number of keys in object *o* on success, and ``-1`` on failure. "
43
48
"This is equivalent to the Python expression ``len(o)``."
44
49
msgstr ""
50
+ "成功時回傳物件 *o* 中的鍵數,失敗時回傳 ``-1``。這相當於 Python 運算式 "
51
+ "``len(o)``。"
45
52
46
53
#: ../../c-api/mapping.rst:31
47
54
msgid ""
48
55
"This is the same as :c:func:`PyObject_GetItem`, but *key* is specified as a :"
49
56
"c:expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
50
57
"`PyObject*`."
51
58
msgstr ""
59
+ "這與 :c:func:`PyObject_GetItem` 相同,但 *key* 被指定為 :c:expr:`const "
60
+ "char*` UTF-8 編碼位元組字串,而不是 :c:expr:`PyObject*`。"
52
61
53
62
#: ../../c-api/mapping.rst:38
54
63
msgid ""
55
64
"This is the same as :c:func:`PyObject_SetItem`, but *key* is specified as a :"
56
65
"c:expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
57
66
"`PyObject*`."
58
67
msgstr ""
68
+ "這與 :c:func:`PyObject_SetItem` 相同,但 *key* 被指定為 :c:expr:`const "
69
+ "char*` UTF-8 編碼位元組字串,而不是 :c:expr:`PyObject*`。"
59
70
60
71
#: ../../c-api/mapping.rst:45
61
72
msgid "This is an alias of :c:func:`PyObject_DelItem`."
62
- msgstr ""
73
+ msgstr "這是 :c:func:`PyObject_DelItem` 的別名。 "
63
74
64
75
#: ../../c-api/mapping.rst:50
65
76
msgid ""
66
77
"This is the same as :c:func:`PyObject_DelItem`, but *key* is specified as a :"
67
78
"c:expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
68
79
"`PyObject*`."
69
80
msgstr ""
81
+ "這與 :c:func:`PyObject_DelItem` 相同,但 *key* 被指定為 :c:expr:`const "
82
+ "char*` UTF-8 編碼位元組字串,而不是 :c:expr:`PyObject*`。"
70
83
71
84
#: ../../c-api/mapping.rst:57
72
85
msgid ""
73
86
"Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
74
87
"This is equivalent to the Python expression ``key in o``. This function "
75
88
"always succeeds."
76
89
msgstr ""
90
+ "如果對映物件具有鍵 *key* 則回傳 ``1``,否則回傳 ``0``。這相當於 Python 運算"
91
+ "式 ``key in o``。這個函式總會是成功的。"
77
92
78
93
#: ../../c-api/mapping.rst:63
79
94
msgid ""
80
95
"Exceptions which occur when this calls :meth:`~object.__getitem__` method "
81
96
"are silently ignored. For proper error handling, use :c:func:"
82
97
"`PyObject_GetItem()` instead."
83
98
msgstr ""
99
+ "當它呼叫 :meth:`~object.__getitem__` 方法時發生的例外將被默默忽略。為了適當地"
100
+ "處理錯誤,請改用 :c:func:`PyObject_GetItem()`。"
84
101
85
102
#: ../../c-api/mapping.rst:70
86
103
msgid ""
87
104
"This is the same as :c:func:`PyMapping_HasKey`, but *key* is specified as a :"
88
105
"c:expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:"
89
106
"`PyObject*`."
90
107
msgstr ""
108
+ "這與 :c:func:`PyMapping_HasKey` 相同,但 *key* 被指定為 :c:expr:`const "
109
+ "char*` UTF-8 編碼位元組字串,而不是 :c:expr:`PyObject*`。"
91
110
92
111
#: ../../c-api/mapping.rst:76
93
112
msgid ""
94
113
"Exceptions that occur when this calls :meth:`~object.__getitem__` method or "
95
114
"while creating the temporary :class:`str` object are silently ignored. For "
96
115
"proper error handling, use :c:func:`PyMapping_GetItemString` instead."
97
116
msgstr ""
117
+ "當它呼叫 :meth:`~object.__getitem__` 方法或建立臨時 :class:`str` 物件時發生的"
118
+ "例外將被默默忽略。為了適當地處理錯誤,請改用 :c:func:"
119
+ "`PyMapping_GetItemString`。"
98
120
99
121
#: ../../c-api/mapping.rst:84
100
122
msgid ""
101
123
"On success, return a list of the keys in object *o*. On failure, return "
102
124
"``NULL``."
103
- msgstr ""
125
+ msgstr "成功時回傳一個物件 *o* 內之鍵的串列,失敗時回傳 ``NULL``。 "
104
126
105
127
#: ../../c-api/mapping.rst:87 ../../c-api/mapping.rst:96
106
128
#: ../../c-api/mapping.rst:105
107
129
msgid "Previously, the function returned a list or a tuple."
108
- msgstr ""
130
+ msgstr "在以前,該函式會回傳串列或元組。 "
109
131
110
132
#: ../../c-api/mapping.rst:93
111
133
msgid ""
112
134
"On success, return a list of the values in object *o*. On failure, return "
113
135
"``NULL``."
114
- msgstr ""
136
+ msgstr "成功時回傳物件 *o* 中值的串列。失敗時回傳 ``NULL``。 "
115
137
116
138
#: ../../c-api/mapping.rst:102
117
139
msgid ""
118
140
"On success, return a list of the items in object *o*, where each item is a "
119
141
"tuple containing a key-value pair. On failure, return ``NULL``."
120
142
msgstr ""
143
+ "成功時回傳物件 *o* 內之項目的串列,其中每個項目都是包含鍵值對的元組。失敗時回"
144
+ "傳 ``NULL``。"
121
145
122
146
#: ../../c-api/mapping.rst:23
123
147
msgid "built-in function"
0 commit comments