from fastapi import FastAPI app=FastAPI() @app.get('/') def health(): return '8005成功' if __name__ == "__main__": import uvicorn uvicorn.run(app,host='0.0.0.0',port=8005)