fastapi/docs_src/debugging/tutorial001.py

11 lines
131 B
Python

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
a = "a"
b = "b" + a
return {"hello world": b}