Error in user YAML: (<unknown>): found a tab character that violate indentation while scanning a plain scalar at line 3 column 3
---
- oeasy Python 0614
- 这是 oeasy 系统化 Python 教程,从基础一步步讲,扎实、完整、不跳步。愿意花时间学,就能真正学会。
- 本教程同步发布在:
- 个人网站: `https://oeasy.org`
- 蓝桥云课: `https://www.lanqiao.cn/courses/3584`
- GitHub: `https://github.com/overmind1980/oeasy-python-tutorial`
- Gitee: `https://gitee.com/overmind1980/oeasypython`
---- 上次开启了新的旅行
- 研究fastapi这个pythonweb
- 他可以做动态网站
- 我们已经安装了这个程序
- 并且成功地跑了起来
- 可以在浏览器中访问
- fastapi为什么叫做fastapi呢?
- 根据整个webapp的代码
- 生成了openapi.json
- openapi 来自于 https://github.com/OAI/OpenAPI-Specification
- 根据openapi.json
- 生成了这个关于openapi.json的页面
- 我们去观察页面
- 有两个url可以被访问
- 我们去打开其中一个
- 点开其中一个
- 执行
- 可以得到相应的json响应结果
- 也可以获得响应
- 也是根据openapi生成的
- 也可以看两个url的细节
- 这次我们研究了fastapi的展示效果
- 为什么fastapi被叫做fastapi?
- 因为他可以生成一个openapi.json
- 然后用不同的ui可以渲染成页面
- 除了Get之外我们可以别的提交方法吗?🤔
- 下次再说👋🏻
- 本文来自 oeasy Python 系统教程。
- 想完整、扎实学 Python,
- 搜索 oeasy 即可。




