新添加的时候如果不做处理,是这个样子
要在解析xml加上
parser = etree.XMLParser(remove_blank_text=True)xml = etree.parse(majorXMLPath, parser)才能在使后面的
pretty_print=True生效解决方法来着https://blog.csdn.net/xcookies/article/details/78647242