@app.route('/hello/')
@app.route('/hello/<name>')
@app.route('/hello/<name>/<age>')
def hello(name='wu',age='0'):
return "{},{}".format(name,age)
@app.route('/hello/')
@app.route('/hello/<name>')
@app.route('/hello/<name>/<age>')
def hello(name='wu',age='0'):
return "{},{}".format(name,age)
本文标题:[Flask]路径获取参数方法1 /hello/<name
本文链接:https://www.haomeiwen.com/subject/khnewftx.html
网友评论