格式化输出prettify()

BeautifulSoup的格式化输出函数:

print(soup.prettify())

原文地址:https://www.cnblogs.com/themost/p/6681376.html