Flask闭关修炼(高级) 1 Posted on 2019-12-01 路由跳转问题编写route时,如果末尾有/未匹配时会发生一次308重定向 注册路由的方法 装饰器 123@app.route('/')def index(): return 'index' add_url_rule 1app.add_url_rule('/', view_func=index) Title: Flask advanced Post author: YingJoy Post link: https://yingjoy.cn/2019/12/Flask闭关修炼(高级)-1/ Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 3.0 unless stating additionally.