Browse Source

Update 'README.md'

天问 2 years ago
parent
commit
3a77ee722c
1 changed files with 14 additions and 0 deletions
  1. 14 0
      README.md

+ 14 - 0
README.md

@@ -1,2 +1,16 @@
 # fastapi
 
+```
+pip install fastapi
+pip install uvicorn
+
+
+from fastapi import FastAPI
+
+app = FastAPI()
+
+@app.get("/")
+async def root():
+    return {"message": "Hello World"}
+
+```