python文档处理工具,结构化标记处理工具

### 导航

- [索引](../genindex.xhtml "总目录")

- [模块](../py-modindex.xhtml "Python 模块索引") |

- [下一页](html.xhtml "html --- 超文本标记语言支持") |

- [上一页](uu.xhtml "uu --- Encode and decode uuencode files") |

- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)

- [Python](https://www.python.org/) »

- zh\_CN 3.7.3 [文档](../index.xhtml) »

- [Python 标准库](index.xhtml) »

- $('.inline-search').show(0); |

# 结构化标记处理工具

Python 支持各种模块,以处理各种形式的结构化数据标记。 这包括使用标准通用标记语言(SGML)和超文本标记语言(HTML)的模块,以及使用可扩展标记语言(XML)的几个接口。

- [`html` --- 超文本标记语言支持](html.xhtml)

- [`html.parser` --- 简单的 HTML 和 XHTML 解析器](html.parser.xhtml)

- [HTML 解析器的示例程序](html.parser.xhtml#example-html-parser-application)

- [`HTMLParser` 方法](html.parser.xhtml#htmlparser-methods)

- [示例](html.parser.xhtml#examples)

- [`html.entities` --- HTML 一般实体的定义](html.entities.xhtml)

- [XML处理模块](xml.xhtml)

- [XML 漏洞](xml.xhtml#xml-vulnerabilities)

- [`defusedxml` 和 `defusedexpat` 软件包](xml.xhtml#the-defusedxml-and-defusedexpat-packages)

- [`xml.etree.ElementTree` --- The ElementTree XML API](xml.etree.elementtree.xhtml)

- [教程](xml.etree.elementtree.xhtml#tutorial)

- [XML tree and elements](xml.etree.elementtree.xhtml#xml-tree-and-elements)

- [Parsing XML](xml.etree.elementtree.xhtml#parsing-xml)

- [Pull API for non-blocking parsing](xml.etree.elementtree.xhtml#pull-api-for-non-blocking-parsing)

- [Finding interesting elements](xml.etree.elementtree.xhtml#finding-interesting-elements)

- [Modifying an XML File](xml.etree.elementtree.xhtml#modifying-an-xml-file)

- [Building XML documents](xml.etree.elementtree.xhtml#building-xml-documents)

- [Parsing XML with Namespaces](xml.etree.elementtree.xhtml#parsing-xml-with-namespaces)

- [Additional resources](xml.etree.elementtree.xhtml#additional-resources)

- [XPath support](xml.etree.elementtree.xhtml#xpath-support)

- [示例](xml.etree.elementtree.xhtml#example)

- [Supported XPath syntax](xml.etree.elementtree.xhtml#supported-xpath-syntax)

- [参考引用](xml.etree.elementtree.xhtml#reference)

- [函数](xml.etree.elementtree.xhtml#functions)

- [Element Objects](xml.etree.elementtree.xhtml#element-objects)

- [ElementTree Objects](xml.etree.elementtree.xhtml#elementtree-objects)

- [QName Objects](xml.etree.elementtree.xhtml#qname-objects)

- [TreeBuilder Objects](xml.etree.elementtree.xhtml#treebuilder-objects)

- [XMLParser Objects](xml.etree.elementtree.xhtml#xmlparser-objects)

- [XMLPullParser Objects](xml.etree.elementtree.xhtml#xmlpullparser-objects)

- [异常](xml.etree.elementtree.xhtml#exceptions)

- [`xml.dom` --- The Document Object Model API](xml.dom.xhtml)

- [模块内容](xml.dom.xhtml#module-contents)

- [Objects in the DOM](xml.dom.xhtml#objects-in-the-dom)

- [DOMImplementation Objects](xml.dom.xhtml#domimplementation-objects)

- [Node Objects](xml.dom.xhtml#node-objects)

- [NodeList Objects](xml.dom.xhtml#nodelist-objects)

- [DocumentType Objects](xml.dom.xhtml#documenttype-objects)

- [Document Objects](xml.dom.xhtml#document-objects)

- [Element Objects](xml.dom.xhtml#element-objects)

- [Attr Objects](xml.dom.xhtml#attr-objects)

- [NamedNodeMap Objects](xml.dom.xhtml#namednodemap-objects)

- [Comment Objects](xml.dom.xhtml#comment-objects)

- [Text and CDATASection Objects](xml.dom.xhtml#text-and-cdatasection-objects)

- [ProcessingInstruction Objects](xml.dom.xhtml#processinginstruction-objects)

- [异常](xml.dom.xhtml#exceptions)

- [Conformance](xml.dom.xhtml#conformance)

- [Type Mapping](xml.dom.xhtml#type-mapping)

- [Accessor Methods](xml.dom.xhtml#accessor-methods)

- [`xml.dom.minidom` --- Minimal DOM implementation](xml.dom.minidom.xhtml)

- [DOM Objects](xml.dom.minidom.xhtml#dom-objects)

- [DOM Example](xml.dom.minidom.xhtml#dom-example)

- [minidom and the DOM standard](xml.dom.minidom.xhtml#minidom-and-the-dom-standard)

- [`xml.dom.pulldom` --- Support for building partial DOM trees](xml.dom.pulldom.xhtml)

- [DOMEventStream Objects](xml.dom.pulldom.xhtml#domeventstream-objects)

- [`xml.sax` --- Support for SAX2 parsers](xml.sax.xhtml)

- [SAXException Objects](xml.sax.xhtml#saxexception-objects)

- [`xml.sax.handler` --- Base classes for SAX handlers](xml.sax.handler.xhtml)

- [ContentHandler Objects](xml.sax.handler.xhtml#contenthandler-objects)

- [DTDHandler Objects](xml.sax.handler.xhtml#dtdhandler-objects)

- [EntityResolver Objects](xml.sax.handler.xhtml#entityresolver-objects)

- [ErrorHandler Objects](xml.sax.handler.xhtml#errorhandler-objects)

- [`xml.sax.saxutils` --- SAX Utilities](xml.sax.utils.xhtml)

- [`xml.sax.xmlreader` --- Interface for XML parsers](xml.sax.reader.xhtml)

- [XMLReader Objects](xml.sax.reader.xhtml#xmlreader-objects)

- [IncrementalParser Objects](xml.sax.reader.xhtml#incrementalparser-objects)

- [Locator Objects](xml.sax.reader.xhtml#locator-objects)

- [InputSource Objects](xml.sax.reader.xhtml#inputsource-objects)

- [The `Attributes` Interface](xml.sax.reader.xhtml#the-attributes-interface)

- [The `AttributesNS` Interface](xml.sax.reader.xhtml#the-attributesns-interface)

- [`xml.parsers.expat` --- Fast XML parsing using Expat](pyexpat.xhtml)

- [XMLParser Objects](pyexpat.xhtml#xmlparser-objects)

- [ExpatError Exceptions](pyexpat.xhtml#expaterror-exceptions)

- [示例](pyexpat.xhtml#example)

- [Content Model Descriptions](pyexpat.xhtml#module-xml.parsers.expat.model)

- [Expat error constants](pyexpat.xhtml#module-xml.parsers.expat.errors)

### 导航

- [索引](../genindex.xhtml "总目录")

- [模块](../py-modindex.xhtml "Python 模块索引") |

- [下一页](html.xhtml "html --- 超文本标记语言支持") |

- [上一页](uu.xhtml "uu --- Encode and decode uuencode files") |

- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)

- [Python](https://www.python.org/) »

- zh\_CN 3.7.3 [文档](../index.xhtml) »

- [Python 标准库](index.xhtml) »

- $('.inline-search').show(0); |

© [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation.

Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/)

最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)?

使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值