from flask import Flask,render_template,request
app =
@app.route("/")
def index():
#显示“主页”页面,代码略
@app.route("/introduce")
def introduce():
#显示“介绍”页面,代码略
@app.route("/exercise",methods=["GET","POST"])
def exercise():
#显示“练习”页面,代码略
@app.route("/top")
def toplist():
#显示“排行榜”页面,代码略
if __name__ == "__main__":
app.
A.//127.0.0.1:5000/top toplist() |
a.@app.route("/top") |
B.//127.0.0.1:5000/ exercise() |
b.@app.route("/exercise",methods=["GET","POST"]) |
C.//127.0.0.1:5000/exercise introduce() |
c.@app.route("/introduce") |
D.//127.0.0.1:5000/instance index() |
d.@app.route("/") |
、 、 、