5
5
# Translators:
6
6
# Ching-Lung Chuang, 2015
7
7
# Liang-Bo Wang <me@liang2.tw>, 2015
8
+ # Matt Wang <mattwang44@gmail.com>, 2022
8
9
msgid ""
9
10
msgstr ""
10
11
"Project-Id-Version : Python 3.11\n "
11
12
"Report-Msgid-Bugs-To : \n "
12
13
"POT-Creation-Date : 2022-10-15 20:43+0000\n "
13
- "PO-Revision-Date : 2017-09-22 18:26+0000 \n "
14
- "Last-Translator : Liang-Bo Wang <me@liang2.tw >\n "
14
+ "PO-Revision-Date : 2022-11-12 15:45+0800 \n "
15
+ "Last-Translator : Matt Wang <mattwang44@gmail.com >\n "
15
16
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
16
17
"tw)\n "
17
18
"Language : zh_TW\n "
18
19
"MIME-Version : 1.0\n "
19
20
"Content-Type : text/plain; charset=UTF-8\n "
20
21
"Content-Transfer-Encoding : 8bit\n "
21
22
"Plural-Forms : nplurals=1; plural=0;\n "
23
+ "X-Generator : Poedit 3.2\n "
22
24
23
25
#: ../../c-api/function.rst:6
24
26
msgid "Function Objects"
25
- msgstr "函式( Function)物件 "
27
+ msgstr "函式物件 ( Function Objects) "
26
28
27
29
#: ../../c-api/function.rst:10
28
30
msgid "There are a few functions specific to Python functions."
29
- msgstr "這有一些少數Python函數的於具體說明 。"
31
+ msgstr "這有一些特用於 Python 函數的函數 。"
30
32
31
33
#: ../../c-api/function.rst:15
32
34
msgid "The C structure used for functions."
33
- msgstr ""
35
+ msgstr "用於函式的 C 結構。 "
34
36
35
37
#: ../../c-api/function.rst:22
36
38
msgid ""
37
39
"This is an instance of :c:type:`PyTypeObject` and represents the Python "
38
40
"function type. It is exposed to Python programmers as ``types."
39
41
"FunctionType``."
40
42
msgstr ""
43
+ "這是個 :c:type:`PyTypeObject` 的實例,且代表了 Python 函式型別,Python 程式設"
44
+ "計者可透過 ``types.FunctionType`` 使用它。"
41
45
42
46
#: ../../c-api/function.rst:28
43
47
msgid ""
44
48
"Return true if *o* is a function object (has type :c:data:"
45
49
"`PyFunction_Type`). The parameter must not be ``NULL``. This function "
46
50
"always succeeds."
47
51
msgstr ""
52
+ "如果 *o* 是個函數物件(擁有 :c:data:`PyFunction_Type` 的型別)則回傳 true。參"
53
+ "數必須不為 ``NULL``。此函數必能成功執行。"
48
54
49
55
#: ../../c-api/function.rst:34
50
56
msgid ""
51
57
"Return a new function object associated with the code object *code*. "
52
58
"*globals* must be a dictionary with the global variables accessible to the "
53
59
"function."
54
60
msgstr ""
61
+ "回傳一個與程式碼物件 *code* 相關聯的函數物件。*globals* 必須是一個帶有函數能"
62
+ "夠存取的全域變數的字典。"
55
63
56
64
#: ../../c-api/function.rst:37
57
65
msgid ""
@@ -60,6 +68,9 @@ msgid ""
60
68
"and closure are set to ``NULL``. *__qualname__* is set to the same value as "
61
69
"the code object's ``co_qualname`` field."
62
70
msgstr ""
71
+ "函數的文件字串 (docstring) 和名稱是從程式碼物件所取得,*__module__* 是自 "
72
+ "*globals* 所取得。引數預設值、標註 (annotation) 和閉包 (closure) 被設為 "
73
+ "``NULL``,*__qualname__* 被設為和程式碼物件 ``co_qualname`` 欄位相同的值。"
63
74
64
75
#: ../../c-api/function.rst:45
65
76
msgid ""
@@ -68,71 +79,77 @@ msgid ""
68
79
"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same "
69
80
"value as the code object's ``co_qualname`` field."
70
81
msgstr ""
82
+ "和 :c:func:`PyFunction_New` 相似,但也允許函式物件 ``__qualname__`` 屬性的設"
83
+ "定,*qualname* 應為一個 unicode 物件或是 ``NULL``;如為 ``NULL``,"
84
+ "``__qualname__`` 屬性會被設為與程式碼物件 ``co_qualname`` 欄位相同的值。"
71
85
72
86
#: ../../c-api/function.rst:55
73
87
msgid "Return the code object associated with the function object *op*."
74
- msgstr "回傳與程式碼物件相關的函數物件 *op*\\ 。"
88
+ msgstr "回傳與程式碼物件相關的函數物件 *op*。"
75
89
76
90
#: ../../c-api/function.rst:60
77
91
msgid "Return the globals dictionary associated with the function object *op*."
78
- msgstr "回傳與全域函數字典相關的函數物件 *op*\\ 。"
92
+ msgstr "回傳與全域函數字典相關的函數物件 *op*。"
79
93
80
94
#: ../../c-api/function.rst:65
81
95
msgid ""
82
96
"Return a :term:`borrowed reference` to the *__module__* attribute of the "
83
97
"function object *op*. It can be *NULL*."
84
98
msgstr ""
99
+ "回傳一個函數物件 *op* 之 *__module__* 屬性的 :term:`borrowed reference`,它可"
100
+ "以是 *NULL*。"
85
101
86
102
#: ../../c-api/function.rst:68
87
103
msgid ""
88
104
"This is normally a string containing the module name, but can be set to any "
89
105
"other object by Python code."
90
- msgstr ""
106
+ msgstr "這通常是個包含模組名稱的字串,但可以被 Python 程式設為任何其他物件。 "
91
107
92
108
#: ../../c-api/function.rst:74
93
- #, fuzzy
94
109
msgid ""
95
110
"Return the argument default values of the function object *op*. This can be "
96
111
"a tuple of arguments or ``NULL``."
97
- msgstr "回傳函式物件 *op* 標註。此可以是一個可變動的字典或 *NULL*\\ 。"
112
+ msgstr ""
113
+ "回傳函式物件 *op* 的引數預設值,這可以是一個含有多個引數的 tuple(元組)或 "
114
+ "``NULL``。"
98
115
99
116
#: ../../c-api/function.rst:80
100
- #, fuzzy
101
117
msgid ""
102
118
"Set the argument default values for the function object *op*. *defaults* "
103
119
"must be ``Py_None`` or a tuple."
104
120
msgstr ""
105
- "設定函數物件 *op* 的標註。 \\ *annotations* 必須是一個字典或 * Py_None* \\ 。"
121
+ "設定函數物件 *op* 的引數預設值。*defaults* 必須是 `` Py_None`` 或一個 tuple 。"
106
122
107
123
#: ../../c-api/function.rst:83 ../../c-api/function.rst:97
108
124
#: ../../c-api/function.rst:111
109
125
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
110
- msgstr ""
126
+ msgstr "引發 :exc:`SystemError` 且在失敗時回傳 ``-1``。 "
111
127
112
128
#: ../../c-api/function.rst:88
113
- #, fuzzy
114
129
msgid ""
115
130
"Return the closure associated with the function object *op*. This can be "
116
131
"``NULL`` or a tuple of cell objects."
117
- msgstr "回傳與程式碼物件相關的函數物件 *op*\\ 。"
132
+ msgstr ""
133
+ "回傳與函數物件 *op* 相關聯的閉包,這可以是個 ``NULL`` 或是一個包含 cell 物件"
134
+ "的 tuple。"
118
135
119
136
#: ../../c-api/function.rst:94
120
137
msgid ""
121
138
"Set the closure associated with the function object *op*. *closure* must be "
122
139
"``Py_None`` or a tuple of cell objects."
123
140
msgstr ""
141
+ "設定與函數物件 *op* 相關聯的閉包,*closure* 必須是 ``Py_None`` 或是一個包含 "
142
+ "cell 物件的 tuple。"
124
143
125
144
#: ../../c-api/function.rst:102
126
- #, fuzzy
127
145
msgid ""
128
146
"Return the annotations of the function object *op*. This can be a mutable "
129
147
"dictionary or ``NULL``."
130
- msgstr "回傳函式物件 *op* 標註。此可以是一個可變動的字典或 *NULL*\\ 。"
148
+ msgstr ""
149
+ "回傳函式物件 *op* 的標註,這可以是一個可變動的 (mutable) 字典或 ``NULL``。"
131
150
132
151
#: ../../c-api/function.rst:108
133
- #, fuzzy
134
152
msgid ""
135
153
"Set the annotations for the function object *op*. *annotations* must be a "
136
154
"dictionary or ``Py_None``."
137
- msgstr ""
138
- "設定函數物件 *op* 的標註。\\ *annotations* 必須是一個字典或 *Py_None*\\ 。"
155
+ msgstr "設定函數物件 *op* 的標註,*annotations* 必須是一個字典或 ``Py_None``。"
0 commit comments