python -m uvicorn主程序:应用程序--重新加载 这里main是你的文件名
python -m uvicorn主程序:应用程序--重新加载 这里main是你的文件名
这里不用关注ifscope["type"]=="lifespan":awaitself.lifespan(scope,receive,send)returnpartial=Noneforrouteinself.routes:# Determine if any route matches the incoming scope,# and hand over to the matching route if found.match,child_scope=route...