You can use the addnext() method: from lxml import etree XML= """ <tag attrib1='I'> <subtag1 subattrib1='1'> <subtext>text1</subtext> </subtag1> <subtag3 ...
確定! 回上一頁