@app.route('/getlast')
def getlast():
return (las)
@app.route('/')
def index():
return render_template('index.html', u=u, l = l)
if __name__ == '__main__':
app.run(host='0.0.0.0', port =8000, debug=True, threaded=True)
类似这种 app.run执行的是哪个app.route?
app.rounte括号里的参数要和下面函数名一致吗?