Add a line to a file if it not exist using python

前端 未结 2 1489
悲&欢浪女
悲&欢浪女 2021-01-29 13:19

I have an xml file as follows:


  

        
2条回答
  •  误落风尘
    2021-01-29 14:13

    Take the XML parser of your choice, parse the file, manipulate the file using the related API, write it back.

提交回复
热议问题