阅读背景:

如何使用python xml.etree在新行中获取xml输出?

来源:互联网 

I am generating xml file using "from xml.etree import ElementTree" and placing the generated output in to a new file "test.xml". The output is getting placed inside the test.xml but there is no new line its a big big line. So, what shall i do to have new line inside "test.xml" . Following is the script:I am generating xml file using "from xml.etree




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: