摘要:
from fastapi import FastAPI, Query app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"} # 需求 查询新闻 → 分页,skip: 跳过的记录数, limi 阅读全文
posted @ 2026-03-03 23:11
Clefairy
阅读(9)
评论(0)
推荐(0)
摘要:
from fastapi import FastAPI, Path app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"} @app.get("/book/{id}") async def g 阅读全文
posted @ 2026-03-03 23:09
Clefairy
阅读(11)
评论(0)
推荐(0)
摘要:
from fastapi import FastAPI # 创建 FastAPI 实例 app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World888"} # 访问 /hello 响应结果 msg: 阅读全文
posted @ 2026-03-03 23:04
Clefairy
阅读(13)
评论(0)
推荐(0)

浙公网安备 33010602011771号