📅  最后修改于: 2022-03-11 14:46:51.686000             🧑  作者: Mango
代码示例1
>>> from lxml import etree
>>> tree = etree.parse('filename.xml')
>>> root = tree.getroot()
>>> print root.getprevious()