from bs4 import BeautifulSoup. prettyXmlString = BeautifulSoup(xxx, "xml").prettify(). 清理空行. Empty lines while using minidom.toprettyxml.
確定! 回上一頁