代码拉取完成,页面将自动刷新
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index():
return render_template('首页.html')
# 新增第1章路由
@app.route('/chapter1')
def chapter1():
return render_template('第1章.html')
@app.route('/chapter2')
def chapter2():
return render_template('第2章.html')
@app.route('/chapter3')
def chapter3():
return render_template('第3章.html')
@app.route('/chapter4')
def chapter4():
return render_template('第4章.html')
@app.route('/chapter5')
def chapter5():
return render_template('第5章.html')
@app.route('/chapter6')
def chapter6():
return render_template('第6章.html')
@app.route('/chapter7')
def chapter7():
return render_template('第7章.html')
@app.route('/chapter8')
def chapter8():
return render_template('第8章.html')
@app.route('/chapter9')
def chapter9():
return render_template('第9章.html')
@app.route('/chapter10')
def chapter10():
return render_template('第10章.html')
@app.route('/chapter11')
def chapter11():
return render_template('第11章.html')
@app.route('/chapter12')
def chapter12():
return render_template('第12章.html')
@app.route('/chapter13')
def chapter13():
return render_template('第13章.html')
if __name__ == '__main__':
app.run(debug=True)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。