可以使用insert()方法插入新的子节点:. >>> root.insert(0, etree.Element("child0")) 删除子节点:. >>> root[0] = root[-1] # this moves the ...
確定! 回上一頁