11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2018 , Python Software Foundation
2+ # Copyright (C) 2001-2019 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
6+ # Translators:
7+ # Menghua Xiao <[email protected] >, 20188+ 9+ #
610#, fuzzy
711msgid ""
812msgstr ""
913"Project-Id-Version : Python 3.7\n "
1014"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-06-30 05:56 +0900\n "
12- "PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE \n "
13- "Last-Translator : Menghua Xiao <arieshout @gmail.com>, 2018 \n "
15+ "POT-Creation-Date : 2019-01-01 10:14 +0900\n "
16+ "PO-Revision-Date : 2017-02-16 23:22+0000 \n "
17+ "Last-Translator : 叶浚安 <ye.pandaaaa906 @gmail.com>, 2019 \n "
1418"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1519"MIME-Version : 1.0\n "
1620"Content-Type : text/plain; charset=UTF-8\n "
@@ -20,11 +24,11 @@ msgstr ""
2024
2125#: ../../library/pprint.rst:2
2226msgid ":mod:`pprint` --- Data pretty printer"
23- msgstr ""
27+ msgstr ":mod:`pprint` --- 数据美化输出 "
2428
2529#: ../../library/pprint.rst:10
2630msgid "**Source code:** :source:`Lib/pprint.py`"
27- msgstr ""
31+ msgstr "**源代码:** :source:`Lib/pprint.py` "
2832
2933#: ../../library/pprint.rst:14
3034msgid ""
@@ -52,7 +56,7 @@ msgstr ""
5256msgid "The :mod:`pprint` module defines one class:"
5357msgstr ""
5458
55- #: ../../library/pprint.rst:36
59+ #: ../../library/pprint.rst:38
5660msgid ""
5761"Construct a :class:`PrettyPrinter` instance. This constructor understands "
5862"several keyword parameters. An output stream may be set using the *stream* "
@@ -72,23 +76,23 @@ msgid ""
7276"*width* will be formatted on each output line."
7377msgstr ""
7478
75- #: ../../library/pprint.rst:53 ../../library/pprint.rst:88
76- #: ../../library/pprint.rst:102
79+ #: ../../library/pprint.rst:55 ../../library/pprint.rst:90
80+ #: ../../library/pprint.rst:104
7781msgid "Added the *compact* parameter."
7882msgstr ""
7983
80- #: ../../library/pprint.rst:80
84+ #: ../../library/pprint.rst:82
8185msgid "The :mod:`pprint` module also provides several shortcut functions:"
8286msgstr ""
8387
84- #: ../../library/pprint.rst:84
88+ #: ../../library/pprint.rst:86
8589msgid ""
8690"Return the formatted representation of *object* as a string. *indent*, "
8791"*width*, *depth* and *compact* will be passed to the :class:`PrettyPrinter` "
8892"constructor as formatting parameters."
8993msgstr ""
9094
91- #: ../../library/pprint.rst:95
95+ #: ../../library/pprint.rst:97
9296msgid ""
9397"Prints the formatted representation of *object* on *stream*, followed by a "
9498"newline. If *stream* is ``None``, ``sys.stdout`` is used. This may be used"
@@ -98,58 +102,58 @@ msgid ""
98102" the :class:`PrettyPrinter` constructor as formatting parameters."
99103msgstr ""
100104
101- #: ../../library/pprint.rst:121
105+ #: ../../library/pprint.rst:123
102106msgid ""
103107"Determine if the formatted representation of *object* is \" readable,\" or "
104108"can be used to reconstruct the value using :func:`eval`. This always "
105109"returns ``False`` for recursive objects."
106110msgstr ""
107111
108- #: ../../library/pprint.rst:131
112+ #: ../../library/pprint.rst:133
109113msgid "Determine if *object* requires a recursive representation."
110114msgstr ""
111115
112- #: ../../library/pprint.rst:134
116+ #: ../../library/pprint.rst:136
113117msgid "One more support function is also defined:"
114118msgstr ""
115119
116- #: ../../library/pprint.rst:138
120+ #: ../../library/pprint.rst:140
117121msgid ""
118122"Return a string representation of *object*, protected against recursive data"
119123" structures. If the representation of *object* exposes a recursive entry, "
120124"the recursive reference will be represented as ``<Recursion on typename with"
121125" id=number>``. The representation is not otherwise formatted."
122126msgstr ""
123127
124- #: ../../library/pprint.rst:150
128+ #: ../../library/pprint.rst:152
125129msgid "PrettyPrinter Objects"
126130msgstr ""
127131
128- #: ../../library/pprint.rst:152
132+ #: ../../library/pprint.rst:154
129133msgid ":class:`PrettyPrinter` instances have the following methods:"
130134msgstr ""
131135
132- #: ../../library/pprint.rst:157
136+ #: ../../library/pprint.rst:159
133137msgid ""
134138"Return the formatted representation of *object*. This takes into account "
135139"the options passed to the :class:`PrettyPrinter` constructor."
136140msgstr ""
137141
138- #: ../../library/pprint.rst:163
142+ #: ../../library/pprint.rst:165
139143msgid ""
140144"Print the formatted representation of *object* on the configured stream, "
141145"followed by a newline."
142146msgstr ""
143147
144- #: ../../library/pprint.rst:166
148+ #: ../../library/pprint.rst:168
145149msgid ""
146150"The following methods provide the implementations for the corresponding "
147151"functions of the same names. Using these methods on an instance is slightly"
148152" more efficient since new :class:`PrettyPrinter` objects don't need to be "
149153"created."
150154msgstr ""
151155
152- #: ../../library/pprint.rst:176
156+ #: ../../library/pprint.rst:178
153157msgid ""
154158"Determine if the formatted representation of the object is \" readable,\" or "
155159"can be used to reconstruct the value using :func:`eval`. Note that this "
@@ -158,18 +162,18 @@ msgid ""
158162"returns ``False``."
159163msgstr ""
160164
161- #: ../../library/pprint.rst:185
165+ #: ../../library/pprint.rst:187
162166msgid "Determine if the object requires a recursive representation."
163167msgstr ""
164168
165- #: ../../library/pprint.rst:187
169+ #: ../../library/pprint.rst:189
166170msgid ""
167171"This method is provided as a hook to allow subclasses to modify the way "
168172"objects are converted to strings. The default implementation uses the "
169173"internals of the :func:`saferepr` implementation."
170174msgstr ""
171175
172- #: ../../library/pprint.rst:194
176+ #: ../../library/pprint.rst:196
173177msgid ""
174178"Returns three values: the formatted version of *object* as a string, a flag "
175179"indicating whether the result is readable, and a flag indicating whether "
@@ -187,11 +191,11 @@ msgid ""
187191"of the current call."
188192msgstr ""
189193
190- #: ../../library/pprint.rst:212
194+ #: ../../library/pprint.rst:214
191195msgid "Example"
192196msgstr "示例"
193197
194- #: ../../library/pprint.rst:214
198+ #: ../../library/pprint.rst:216
195199msgid ""
196200"To demonstrate several uses of the :func:`pprint` function and its "
197201"parameters, let's fetch information about a project from `PyPI "
@@ -202,13 +206,13 @@ msgstr ""
202206msgid "In its basic form, :func:`pprint` shows the whole object::"
203207msgstr ""
204208
205- #: ../../library/pprint.rst:279
209+ #: ../../library/pprint.rst:281
206210msgid ""
207211"The result can be limited to a certain *depth* (ellipsis is used for deeper "
208212"contents)::"
209213msgstr ""
210214
211- #: ../../library/pprint.rst:313
215+ #: ../../library/pprint.rst:327
212216msgid ""
213217"Additionally, maximum character *width* can be suggested. If a long object "
214218"cannot be split, the specified width will be exceeded::"
0 commit comments