Python Flask文件上传的strict_slashes参数


strict_slashes
=None # URL最后的 / 符号是否严格要求

例如:
@app.route('/index',strict_slashes=False) #访问 http://www.xx.com/index/ 或 http://www.xx.com/index均可
@app.route('/index',strict_slashes=True) #仅访问 http://www.xx.com/index 
 
posted @ 2018-12-27 17:09  大西瓜Paul  阅读(947)  评论(0编辑  收藏  举报
/*增加返回顶部按钮*/ 返回顶部 /*给标题增加蓝色背景长条*/