[Flask]路径获取参数方法1 /hello//

@app.route('/hello/')
@app.route('/hello/<name>')
@app.route('/hello/<name>/<age>')
def hello(name='wu',age='0'):
    return "{},{}".format(name,age)
    原文作者:_小老虎_
    原文地址: https://www.jianshu.com/p/964a034b43b6
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞