|
7 | 7 | msgstr ""
|
8 | 8 | "Project-Id-Version: Python 3.13\n"
|
9 | 9 | "Report-Msgid-Bugs-To: \n"
|
10 |
| -"POT-Creation-Date: 2025-02-12 00:13+0000\n" |
| 10 | +"POT-Creation-Date: 2025-04-06 00:16+0000\n" |
11 | 11 | "PO-Revision-Date: 2016-01-31 07:27+0000\n"
|
12 | 12 | " Last-Translator: Liang-Bo Wang <[email protected]>\n"
|
13 | 13 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
|
@@ -132,118 +132,125 @@ msgstr ""
|
132 | 132 |
|
133 | 133 | #: ../../library/plistlib.rst:81
|
134 | 134 | msgid ""
|
135 |
| -"The parser for the binary format raises :exc:`InvalidFileException` when the " |
136 |
| -"file cannot be parsed." |
| 135 | +"The parser raises :exc:`InvalidFileException` when the file cannot be parsed." |
137 | 136 | msgstr ""
|
138 | 137 |
|
139 |
| -#: ../../library/plistlib.rst:86 ../../library/plistlib.rst:131 |
| 138 | +#: ../../library/plistlib.rst:85 ../../library/plistlib.rst:130 |
140 | 139 | msgid "The keyword-only parameter *aware_datetime* has been added."
|
141 | 140 | msgstr ""
|
142 | 141 |
|
143 |
| -#: ../../library/plistlib.rst:92 |
| 142 | +#: ../../library/plistlib.rst:91 |
144 | 143 | msgid ""
|
145 | 144 | "Load a plist from a bytes or string object. See :func:`load` for an "
|
146 | 145 | "explanation of the keyword arguments."
|
147 | 146 | msgstr ""
|
148 | 147 |
|
149 |
| -#: ../../library/plistlib.rst:97 |
| 148 | +#: ../../library/plistlib.rst:96 |
150 | 149 | msgid "*data* can be a string when *fmt* equals :data:`FMT_XML`."
|
151 | 150 | msgstr ""
|
152 | 151 |
|
153 |
| -#: ../../library/plistlib.rst:102 |
| 152 | +#: ../../library/plistlib.rst:101 |
154 | 153 | msgid ""
|
155 | 154 | "Write *value* to a plist file. *fp* should be a writable, binary file object."
|
156 | 155 | msgstr ""
|
157 | 156 |
|
158 |
| -#: ../../library/plistlib.rst:105 |
| 157 | +#: ../../library/plistlib.rst:104 |
159 | 158 | msgid ""
|
160 | 159 | "The *fmt* argument specifies the format of the plist file and can be one of "
|
161 | 160 | "the following values:"
|
162 | 161 | msgstr ""
|
163 | 162 |
|
164 |
| -#: ../../library/plistlib.rst:108 |
| 163 | +#: ../../library/plistlib.rst:107 |
165 | 164 | msgid ":data:`FMT_XML`: XML formatted plist file"
|
166 | 165 | msgstr ""
|
167 | 166 |
|
168 |
| -#: ../../library/plistlib.rst:110 |
| 167 | +#: ../../library/plistlib.rst:109 |
169 | 168 | msgid ":data:`FMT_BINARY`: Binary formatted plist file"
|
170 | 169 | msgstr ""
|
171 | 170 |
|
172 |
| -#: ../../library/plistlib.rst:112 |
| 171 | +#: ../../library/plistlib.rst:111 |
173 | 172 | msgid ""
|
174 | 173 | "When *sort_keys* is true (the default) the keys for dictionaries will be "
|
175 | 174 | "written to the plist in sorted order, otherwise they will be written in the "
|
176 | 175 | "iteration order of the dictionary."
|
177 | 176 | msgstr ""
|
178 | 177 |
|
179 |
| -#: ../../library/plistlib.rst:116 |
| 178 | +#: ../../library/plistlib.rst:115 |
180 | 179 | msgid ""
|
181 | 180 | "When *skipkeys* is false (the default) the function raises :exc:`TypeError` "
|
182 | 181 | "when a key of a dictionary is not a string, otherwise such keys are skipped."
|
183 | 182 | msgstr ""
|
184 | 183 |
|
185 |
| -#: ../../library/plistlib.rst:119 |
| 184 | +#: ../../library/plistlib.rst:118 |
186 | 185 | msgid ""
|
187 | 186 | "When *aware_datetime* is true and any field with type ``datetime.datetime`` "
|
188 | 187 | "is set as an :ref:`aware object <datetime-naive-aware>`, it will convert to "
|
189 | 188 | "UTC timezone before writing it."
|
190 | 189 | msgstr ""
|
191 | 190 |
|
192 |
| -#: ../../library/plistlib.rst:123 |
| 191 | +#: ../../library/plistlib.rst:122 |
193 | 192 | msgid ""
|
194 | 193 | "A :exc:`TypeError` will be raised if the object is of an unsupported type or "
|
195 | 194 | "a container that contains objects of unsupported types."
|
196 | 195 | msgstr ""
|
197 | 196 |
|
198 |
| -#: ../../library/plistlib.rst:126 |
| 197 | +#: ../../library/plistlib.rst:125 |
199 | 198 | msgid ""
|
200 | 199 | "An :exc:`OverflowError` will be raised for integer values that cannot be "
|
201 | 200 | "represented in (binary) plist files."
|
202 | 201 | msgstr ""
|
203 | 202 |
|
204 |
| -#: ../../library/plistlib.rst:137 |
| 203 | +#: ../../library/plistlib.rst:136 |
205 | 204 | msgid ""
|
206 | 205 | "Return *value* as a plist-formatted bytes object. See the documentation for :"
|
207 | 206 | "func:`dump` for an explanation of the keyword arguments of this function."
|
208 | 207 | msgstr ""
|
209 | 208 |
|
210 |
| -#: ../../library/plistlib.rst:144 |
| 209 | +#: ../../library/plistlib.rst:143 |
211 | 210 | msgid "The following classes are available:"
|
212 | 211 | msgstr ""
|
213 | 212 |
|
214 |
| -#: ../../library/plistlib.rst:148 |
| 213 | +#: ../../library/plistlib.rst:147 |
215 | 214 | msgid ""
|
216 | 215 | "Wraps an :class:`int`. This is used when reading or writing NSKeyedArchiver "
|
217 | 216 | "encoded data, which contains UID (see PList manual)."
|
218 | 217 | msgstr ""
|
219 | 218 |
|
220 |
| -#: ../../library/plistlib.rst:151 |
| 219 | +#: ../../library/plistlib.rst:150 |
221 | 220 | msgid ""
|
222 | 221 | "It has one attribute, :attr:`data`, which can be used to retrieve the int "
|
223 | 222 | "value of the UID. :attr:`data` must be in the range ``0 <= data < 2**64``."
|
224 | 223 | msgstr ""
|
225 | 224 |
|
226 |
| -#: ../../library/plistlib.rst:157 |
| 225 | +#: ../../library/plistlib.rst:156 |
227 | 226 | msgid "The following constants are available:"
|
228 | 227 | msgstr ""
|
229 | 228 |
|
230 |
| -#: ../../library/plistlib.rst:161 |
| 229 | +#: ../../library/plistlib.rst:160 |
231 | 230 | msgid "The XML format for plist files."
|
232 | 231 | msgstr ""
|
233 | 232 |
|
234 |
| -#: ../../library/plistlib.rst:168 |
| 233 | +#: ../../library/plistlib.rst:167 |
235 | 234 | msgid "The binary format for plist files"
|
236 | 235 | msgstr ""
|
237 | 236 |
|
238 |
| -#: ../../library/plistlib.rst:174 |
| 237 | +#: ../../library/plistlib.rst:172 |
| 238 | +msgid "The module defines the following exceptions:" |
| 239 | +msgstr "" |
| 240 | + |
| 241 | +#: ../../library/plistlib.rst:176 |
| 242 | +msgid "Raised when a file cannot be parsed." |
| 243 | +msgstr "" |
| 244 | + |
| 245 | +#: ../../library/plistlib.rst:182 |
239 | 246 | msgid "Examples"
|
240 | 247 | msgstr "範例"
|
241 | 248 |
|
242 |
| -#: ../../library/plistlib.rst:176 |
| 249 | +#: ../../library/plistlib.rst:184 |
243 | 250 | msgid "Generating a plist::"
|
244 | 251 | msgstr ""
|
245 | 252 |
|
246 |
| -#: ../../library/plistlib.rst:178 |
| 253 | +#: ../../library/plistlib.rst:186 |
247 | 254 | msgid ""
|
248 | 255 | "import datetime\n"
|
249 | 256 | "import plistlib\n"
|
@@ -285,11 +292,11 @@ msgstr ""
|
285 | 292 | ")\n"
|
286 | 293 | "print(plistlib.dumps(pl).decode())"
|
287 | 294 |
|
288 |
| -#: ../../library/plistlib.rst:198 |
| 295 | +#: ../../library/plistlib.rst:206 |
289 | 296 | msgid "Parsing a plist::"
|
290 | 297 | msgstr ""
|
291 | 298 |
|
292 |
| -#: ../../library/plistlib.rst:200 |
| 299 | +#: ../../library/plistlib.rst:208 |
293 | 300 | msgid ""
|
294 | 301 | "import plistlib\n"
|
295 | 302 | "\n"
|
|
0 commit comments