parseString(ET.tostring(root)).toprettyxml(indent='\t') 3. 用BeautifulSoup. 1from bs4 import BeautifulSoup 2prettyXmlString = BeautifulSoup(xxx, ...
確定! 回上一頁