Flask入门
Flask入门
- Flask作为web框架,它的作用主要是为了开发we应用程序。
- 开启debug


- 基本操作
1 | from flask import Flask,render_template |
- 在templates下新建html文件

1 |
|
表单提交
- app.py
1 | from flask import Flask,render_template,request |
- register.html
1 |
|
- result.html
1 |
|
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Libraの客栈!