使用其他圖書館一樣 lxml : import lxml.etree root = lxml.etree.parse('test.xml') path="./pages/page/paragraph[text()='GHF']" print root.xpath(path).
確定! 回上一頁