摘要: from contextlib import asynccontextmanager from fastapi import FastAPI @asynccontextmanager async def lifespan(app: FastAPI): # 启动逻辑 print("fastapi服务启 阅读全文
posted @ 2025-07-01 17:03 CJTARRR 阅读(55) 评论(0) 推荐(0)