File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ msgstr "对于 :class:`Document` 节点,可以使用附加的关键字参数 *
218218msgid ""
219219"Return a string or byte string containing the XML represented by the DOM "
220220"node."
221- msgstr ""
221+ msgstr "返回一个包含 XML DOM 节点所代表的 XML 的字符串或字节串。 "
222222
223223#: ../../library/xml.dom.minidom.rst:153
224224msgid ""
@@ -228,13 +228,16 @@ msgid ""
228228" encoding. Encoding this string in an encoding other than UTF-8 is likely "
229229"incorrect, since UTF-8 is the default encoding of XML."
230230msgstr ""
231+ "带有显式的 *encoding* [1]_ 参数时,结果为使用指定编码格式的字节串。 没有 *encoding* 参数时,结果为 Unicode "
232+ "字符串,并且结果字符串中的 XML 声明将不指定编码格式。 使用 UTF-8 以外的编码格式对此字符串进行编码通常是不正确的,因为 UTF-8 是 "
233+ "XML 的默认编码格式。"
231234
232235#: ../../library/xml.dom.minidom.rst:162
233236msgid ""
234237"Return a pretty-printed version of the document. *indent* specifies the "
235238"indentation string and defaults to a tabulator; *newl* specifies the string "
236239"emitted at the end of each line and defaults to ``\\ n``."
237- msgstr ""
240+ msgstr "返回文档的美化打印版本。 *indent* 指定缩进字符串并默认为制表符;*newl* 指定标示每行结束的字符串并默认为 `` \\ n``。 "
238241
239242#: ../../library/xml.dom.minidom.rst:166
240243msgid ""
You can’t perform that action at this time.
0 commit comments