66msgstr ""
77"Project-Id-Version : Python 3.14\n "
88"Report-Msgid-Bugs-To : \n "
9- "POT-Creation-Date : 2024-11-15 00:14+0000\n "
9+ "POT-Creation-Date : 2025-10-13 00:14+0000\n "
1010"PO-Revision-Date : 2018-05-23 16:08+0000\n "
1111"
Last-Translator :
Adrian Liaw <[email protected] >\n "
1212"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -43,22 +43,18 @@ msgid ""
4343msgstr ""
4444
4545#: ../../library/pprint.rst:25
46- msgid "Dictionaries are sorted by key before the display is computed."
47- msgstr ""
48-
49- #: ../../library/pprint.rst:27
5046msgid "Added support for pretty-printing :class:`types.SimpleNamespace`."
5147msgstr ""
5248
53- #: ../../library/pprint.rst:30
49+ #: ../../library/pprint.rst:28
5450msgid "Added support for pretty-printing :class:`dataclasses.dataclass`."
5551msgstr ""
5652
57- #: ../../library/pprint.rst:36
53+ #: ../../library/pprint.rst:34
5854msgid "Functions"
5955msgstr "函式"
6056
61- #: ../../library/pprint.rst:41
57+ #: ../../library/pprint.rst:39
6258msgid ""
6359"Prints the formatted representation of *object*, followed by a newline. This "
6460"function may be used in the interactive interpreter instead of the :func:"
@@ -70,85 +66,85 @@ msgstr ""
7066msgid "Parameters"
7167msgstr "參數"
7268
73- #: ../../library/pprint.rst:46
69+ #: ../../library/pprint.rst:44
7470msgid "The object to be printed."
7571msgstr "將被印出的物件。"
7672
77- #: ../../library/pprint.rst:49
73+ #: ../../library/pprint.rst:47
7874msgid ""
7975"A file-like object to which the output will be written by calling its :meth:"
8076"`!write` method. If ``None`` (the default), :data:`sys.stdout` is used."
8177msgstr ""
8278
83- #: ../../library/pprint.rst:55
79+ #: ../../library/pprint.rst:53
8480msgid "The amount of indentation added for each nesting level."
8581msgstr ""
8682
87- #: ../../library/pprint.rst:58
83+ #: ../../library/pprint.rst:56
8884msgid ""
8985"The desired maximum number of characters per line in the output. If a "
9086"structure cannot be formatted within the width constraint, a best effort "
9187"will be made."
9288msgstr ""
9389
94- #: ../../library/pprint.rst:63
90+ #: ../../library/pprint.rst:61
9591msgid ""
9692"The number of nesting levels which may be printed. If the data structure "
9793"being printed is too deep, the next contained level is replaced by ``...``. "
9894"If ``None`` (the default), there is no constraint on the depth of the "
9995"objects being formatted."
10096msgstr ""
10197
102- #: ../../library/pprint.rst:71
98+ #: ../../library/pprint.rst:69
10399msgid ""
104100"Control the way long :term:`sequences <sequence>` are formatted. If "
105101"``False`` (the default), each item of a sequence will be formatted on a "
106102"separate line, otherwise as many items as will fit within the *width* will "
107103"be formatted on each output line."
108104msgstr ""
109105
110- #: ../../library/pprint.rst:78
106+ #: ../../library/pprint.rst:76
111107msgid ""
112108"If ``True``, dictionaries will be formatted with their keys sorted, "
113109"otherwise they will be displayed in insertion order (the default)."
114110msgstr ""
115111
116- #: ../../library/pprint.rst:83
112+ #: ../../library/pprint.rst:81
117113msgid ""
118114"If ``True``, integers will be formatted with the ``_`` character for a "
119115"thousands separator, otherwise underscores are not displayed (the default)."
120116msgstr ""
121117
122- #: ../../library/pprint.rst:105
118+ #: ../../library/pprint.rst:103
123119msgid ""
124120"Alias for :func:`~pprint.pp` with *sort_dicts* set to ``True`` by default, "
125121"which would automatically sort the dictionaries' keys, you might want to "
126122"use :func:`~pprint.pp` instead where it is ``False`` by default."
127123msgstr ""
128124
129- #: ../../library/pprint.rst:113
125+ #: ../../library/pprint.rst:111
130126msgid ""
131127"Return the formatted representation of *object* as a string. *indent*, "
132128"*width*, *depth*, *compact*, *sort_dicts* and *underscore_numbers* are "
133129"passed to the :class:`PrettyPrinter` constructor as formatting parameters "
134130"and their meanings are as described in the documentation above."
135131msgstr ""
136132
137- #: ../../library/pprint.rst:123
133+ #: ../../library/pprint.rst:121
138134msgid ""
139135"Determine if the formatted representation of *object* is \" readable\" , or "
140136"can be used to reconstruct the value using :func:`eval`. This always "
141137"returns ``False`` for recursive objects."
142138msgstr ""
143139
144- #: ../../library/pprint.rst:133
140+ #: ../../library/pprint.rst:131
145141msgid ""
146142"Determine if *object* requires a recursive representation. This function is "
147143"subject to the same limitations as noted in :func:`saferepr` below and may "
148144"raise an :exc:`RecursionError` if it fails to detect a recursive object."
149145msgstr ""
150146
151- #: ../../library/pprint.rst:140
147+ #: ../../library/pprint.rst:138
152148msgid ""
153149"Return a string representation of *object*, protected against recursion in "
154150"some common data structures, namely instances of :class:`dict`, :class:"
@@ -158,61 +154,61 @@ msgid ""
158154"id=number>``. The representation is not otherwise formatted."
159155msgstr ""
160156
161- #: ../../library/pprint.rst:153
157+ #: ../../library/pprint.rst:151
162158msgid "PrettyPrinter Objects"
163159msgstr "PrettyPrinter 物件"
164160
165- #: ../../library/pprint.rst:160
161+ #: ../../library/pprint.rst:158
166162msgid "Construct a :class:`PrettyPrinter` instance."
167163msgstr "建立一個 :class:`PrettyPrinter` 實例。"
168164
169- #: ../../library/pprint.rst:162
165+ #: ../../library/pprint.rst:160
170166msgid ""
171167"Arguments have the same meaning as for :func:`~pprint.pp`. Note that they "
172168"are in a different order, and that *sort_dicts* defaults to ``True``."
173169msgstr ""
174170
175- #: ../../library/pprint.rst:189
171+ #: ../../library/pprint.rst:187
176172msgid "Added the *compact* parameter."
177173msgstr "新增 *compact* 參數。"
178174
179- #: ../../library/pprint.rst:192
175+ #: ../../library/pprint.rst:190
180176msgid "Added the *sort_dicts* parameter."
181177msgstr "新增 *sort_dicts* 參數。"
182178
183- #: ../../library/pprint.rst:195
179+ #: ../../library/pprint.rst:193
184180msgid "Added the *underscore_numbers* parameter."
185181msgstr "新增 *underscore_numbers* 參數。"
186182
187- #: ../../library/pprint.rst:198
183+ #: ../../library/pprint.rst:196
188184msgid "No longer attempts to write to :data:`!sys.stdout` if it is ``None``."
189185msgstr ""
190186
191- #: ../../library/pprint.rst:202
187+ #: ../../library/pprint.rst:200
192188msgid ":class:`PrettyPrinter` instances have the following methods:"
193189msgstr ":class:`PrettyPrinter` 實例有以下方法:"
194190
195- #: ../../library/pprint.rst:207
191+ #: ../../library/pprint.rst:205
196192msgid ""
197193"Return the formatted representation of *object*. This takes into account "
198194"the options passed to the :class:`PrettyPrinter` constructor."
199195msgstr ""
200196
201- #: ../../library/pprint.rst:213
197+ #: ../../library/pprint.rst:211
202198msgid ""
203199"Print the formatted representation of *object* on the configured stream, "
204200"followed by a newline."
205201msgstr ""
206202
207- #: ../../library/pprint.rst:216
203+ #: ../../library/pprint.rst:214
208204msgid ""
209205"The following methods provide the implementations for the corresponding "
210206"functions of the same names. Using these methods on an instance is slightly "
211207"more efficient since new :class:`PrettyPrinter` objects don't need to be "
212208"created."
213209msgstr ""
214210
215- #: ../../library/pprint.rst:226
211+ #: ../../library/pprint.rst:224
216212msgid ""
217213"Determine if the formatted representation of the object is \" readable,\" or "
218214"can be used to reconstruct the value using :func:`eval`. Note that this "
@@ -221,18 +217,18 @@ msgid ""
221217"returns ``False``."
222218msgstr ""
223219
224- #: ../../library/pprint.rst:235
220+ #: ../../library/pprint.rst:233
225221msgid "Determine if the object requires a recursive representation."
226222msgstr ""
227223
228- #: ../../library/pprint.rst:237
224+ #: ../../library/pprint.rst:235
229225msgid ""
230226"This method is provided as a hook to allow subclasses to modify the way "
231227"objects are converted to strings. The default implementation uses the "
232228"internals of the :func:`saferepr` implementation."
233229msgstr ""
234230
235- #: ../../library/pprint.rst:244
231+ #: ../../library/pprint.rst:242
236232msgid ""
237233"Returns three values: the formatted version of *object* as a string, a flag "
238234"indicating whether the result is readable, and a flag indicating whether "
@@ -250,18 +246,18 @@ msgid ""
250246"of the current call."
251247msgstr ""
252248
253- #: ../../library/pprint.rst:262
249+ #: ../../library/pprint.rst:260
254250msgid "Example"
255251msgstr "範例"
256252
257- #: ../../library/pprint.rst:264
253+ #: ../../library/pprint.rst:262
258254msgid ""
259255"To demonstrate several uses of the :func:`~pprint.pp` function and its "
260256"parameters, let's fetch information about a project from `PyPI <https://pypi."
261257"org>`_::"
262258msgstr ""
263259
264- #: ../../library/pprint.rst:267
260+ #: ../../library/pprint.rst:265
265261msgid ""
266262">>> import json\n"
267263">>> import pprint\n"
@@ -275,11 +271,11 @@ msgstr ""
275271">>> with urlopen('https://pypi.org/pypi/sampleproject/1.2.0/json') as resp:\n"
276272"... project_info = json.load(resp)['info']"
277273
278- #: ../../library/pprint.rst:273
274+ #: ../../library/pprint.rst:271
279275msgid "In its basic form, :func:`~pprint.pp` shows the whole object::"
280276msgstr ""
281277
282- #: ../../library/pprint.rst:275
278+ #: ../../library/pprint.rst:273
283279msgid ""
284280">>> pprint.pp(project_info)\n"
285281"{'author': 'The Python Packaging Authority',\n"
@@ -395,13 +391,13 @@ msgstr ""
395391" 'summary': 'A sample Python project',\n"
396392" 'version': '1.2.0'}"
397393
398- #: ../../library/pprint.rst:329
394+ #: ../../library/pprint.rst:327
399395msgid ""
400396"The result can be limited to a certain *depth* (ellipsis is used for deeper "
401397"contents)::"
402398msgstr ""
403399
404- #: ../../library/pprint.rst:332
400+ #: ../../library/pprint.rst:330
405401msgid ""
406402">>> pprint.pp(project_info, depth=1)\n"
407403"{'author': 'The Python Packaging Authority',\n"
@@ -495,13 +491,13 @@ msgstr ""
495491" 'summary': 'A sample Python project',\n"
496492" 'version': '1.2.0'}"
497493
498- #: ../../library/pprint.rst:375
494+ #: ../../library/pprint.rst:373
499495msgid ""
500496"Additionally, maximum character *width* can be suggested. If a long object "
501497"cannot be split, the specified width will be exceeded::"
502498msgstr ""
503499
504- #: ../../library/pprint.rst:378
500+ #: ../../library/pprint.rst:376
505501msgid ""
506502">>> pprint.pp(project_info, depth=1, width=60)\n"
507503"{'author': 'The Python Packaging Authority',\n"
@@ -595,18 +591,18 @@ msgstr ""
595591" 'summary': 'A sample Python project',\n"
596592" 'version': '1.2.0'}"
597593
598- #: ../../library/pprint.rst:121 ../../library/pprint.rst:224
594+ #: ../../library/pprint.rst:119 ../../library/pprint.rst:222
599595msgid "built-in function"
600596msgstr "built-in function(內建函式)"
601597
602- #: ../../library/pprint.rst:121 ../../library/pprint.rst:224
598+ #: ../../library/pprint.rst:119 ../../library/pprint.rst:222
603599msgid "eval"
604600msgstr "eval"
605601
606- #: ../../library/pprint.rst:155
602+ #: ../../library/pprint.rst:153
607603msgid "..."
608604msgstr "..."
609605
610- #: ../../library/pprint.rst:155
606+ #: ../../library/pprint.rst:153
611607msgid "placeholder"
612608msgstr "placeholder(佔位符號)"
0 commit comments