摘要: 在flask中,使用url_for 进行路由反转时,需要传递一个endpoint的值,用法如下: @app.route('/', endpoint='my_index') def index(): return 'index page' @app.route('/hello') def hello( 阅读全文
posted @ 2020-03-10 11:27 SJL0327 阅读(521) 评论(0) 推荐(0) 编辑