Modify or add an element with lxml

后端 未结 0 1357
借酒劲吻你
借酒劲吻你 2021-02-18 23:04

If a tag 456 already exists in a XML file, we can modify it like this:

for s in tree.xpath("//home/object"):
    s.f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题