随笔分类 -  Python其他 / fastApi

摘要:1:构建一个接口 import uvicorn from fastapi import FastAPI app = FastAPI() """ 构建接口 """ @app.get("/") async def Index(): return {"code":200,"msg":"访问成功"} if 阅读全文
posted @ 2022-09-13 12:35 PythonNew_Mr.Wang 阅读(466) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示