python使用lxml读写xml

    xiaoxiao2022-07-02  171

    python使用lxml读写xml

    网上比较详细的一篇,感谢大佬。

    Python读写XML文档(lxml方式)

    from lxml import etree tree=etree.parse('D://2018//99-Info.xml') root = tree.getroot() for node in root.xpath('//beginframe'): print (node.text)
    最新回复(0)