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(‘’) 第
相關文章
相關標籤/搜索