... bad.getparent().remove(bad) # here I grab the parent of the element… ... 我需要使用python的lxml根据属性的内容完全删除元素。例: import lxml.etree as et ...
確定! 回上一頁