flask基本使用
url与视图的映射
-
指定url

-
指定url并指定参数类型

-
指定默认值

模板渲染
-
在templates目录下新建html,返回html页面

-
在templates目录下新建html,接收参数

-
向指定html传入参数

模板访问对象属性
-
app.py

-
index.html

指定url

指定url并指定参数类型

指定默认值

在templates目录下新建html,返回html页面

在templates目录下新建html,接收参数

向指定html传入参数

app.py

index.html
