flask(二)

使用配置文件方式 config.py 文件 DEBUG=True          app.config.from_object(config)     url传参 @app.route('/index/<name>') def  index(name):        return "hello world %s" %(name)   反转的url 通过函数名返回路由 url_for(‘’) 第
相关文章
相关标签/搜索