下面是我的烧瓶代码:
@app.route('/finance')
def finance():
page = requests.get("http://dataquestio.github.io/web-scraping-pages/simple.html")
soup = BeautifulSoup(page.content, 'html.parser')
soup = soup.prettify()
return render_template('finance.html', page=page, soup=soup)
HTML代码:
{{ soup }}
如何在第一张图像中实现整洁的格式?