File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -416,3 +416,7 @@ msgid ""
416416"EncodingDecl and https://www.iana.org/assignments/character-sets/character-"
417417"sets.xhtml."
418418msgstr ""
419+ "包括在 XML 输出中的编码格式名称应当遵循适当的标准。 例如,\" UTF-8\" 是有效的,但 \" UTF8\" 在 XML "
420+ "文档的声明中是无效的,即使 Python 接受其作为编码格式名称。 详情参见 https://www.w3.org/TR/2006/REC-"
421+ "xml11-20060816/#NT-EncodingDecl 和 https://www.iana.org/assignments"
422+ "/character-sets/character-sets.xhtml。"
Original file line number Diff line number Diff line change @@ -91,17 +91,24 @@ msgid ""
9191"errors. There is no return value; all work must be done by the *handler* "
9292"passed in."
9393msgstr ""
94+ "创建一个 SAX 解析器并用它来解析文档。 用于传入文档的 *filename_or_stream* 可以是一个文件名或文件对象。 *handler* "
95+ "形参必须是一个 SAX :class:`~handler.ContentHandler` 实例。 如果给出了 "
96+ "*error_handler*,则它必须是一个 SAX :class:`~handler.ErrorHandler` "
97+ "实例;如果省略,则对于任何错误都将引发 :exc:`SAXParseException`。 此函数没有返回值;所有操作必须由传入的 *handler*"
98+ " 来完成。"
9499
95100#: ../../library/xml.sax.rst:64
96101msgid ""
97102"Similar to :func:`parse`, but parses from a buffer *string* received as a "
98103"parameter. *string* must be a :class:`str` instance or a :term:`bytes-like "
99104"object`."
100105msgstr ""
106+ "类似于 :func:`parse`,但解析对象是作为形参传入的缓冲区 *string*。 *string* 必须为 :class:`str` 实例或者 "
107+ ":term:`bytes-like object`。"
101108
102109#: ../../library/xml.sax.rst:68
103110msgid "Added support of :class:`str` instances."
104- msgstr ""
111+ msgstr "增加了对 :class:`str` 实例的支持。 "
105112
106113#: ../../library/xml.sax.rst:71
107114msgid ""
You can’t perform that action at this time.
0 commit comments