7-25<X9>kpg.xml XML 处理

TableOfContents

概览

  1. Para 1:下面两章是关于 Python 中 XML 处理的。如果你已经知道一个 XML 文档的样子,…… (./) 如果你已经对 XML 文档有了一个大概的了解

  2. Para 3:Being a philosophy major is not required, although if you have ever had the misfortune of being subjected to the writings of Immanuel Kant, you will appreciate the example program a lot more than if you majored in something useful, like computer science. (!) 又一次没有翻译BR (./) 如果你在大学里主修哲学(而不是像计算机科学这样的实用专业),并且曾不幸地被伊曼努尔·康德的著作折磨地够呛,那么你会非常欣赏本章的样例程序。(这当然不意味着你必须修过哲学。)

  3. 例9.3, 标题:Sample output of kgp.py (./) kgp.py 的样例输出

  4. 例9.3下, Para 1, Line -1:但所有内容都 {X} 符合康德的风格。

XML 解析

Unicode

搜索元素

访问元素属性

Segue