- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 236 for url_lines (0.08 seconds)
-
docs/zh/docs/environment-variables.md
Hello Wade Wilson ``` </div> //// ## 在 Python 中读取环境变量 { #read-env-vars-in-python } 你也可以在 Python **之外**的终端中创建环境变量(或使用任何其他方法),然后在 Python 中**读取**它们。 例如,你可以创建一个名为 `main.py` 的文件,其中包含以下内容: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` /// tip | 提示 第二个参数是 [`os.getenv()`](https://docs.python.org/3.8/library/os.html#os.getenv) 的默认返回值。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.8K bytes - Click Count (0) -
docs/en/docs/index.md
return {"item_id": item_id, "q": q} ``` <details markdown="1"> <summary>Or use <code>async def</code>...</summary> If your code uses `async` / `await`, use `async def`: ```Python hl_lines="7 12" from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 21.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/response-model.md
但如果你的資料在模型中對於有預設值的欄位也有實際值,例如 ID 為 `bar` 的項目: ```Python hl_lines="3 5" { "name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2 } ``` 它們會被包含在回應中。 #### 與預設值相同的資料 { #data-with-the-same-values-as-the-defaults } 如果資料的值與預設值相同,例如 ID 為 `baz` 的項目: ```Python hl_lines="3 5-6" { "name": "Baz", "description": None,Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.5K bytes - Click Count (0) -
docs/ja/docs/index.md
return {"item_id": item_id, "q": q} ``` <details markdown="1"> <summary>または <code>async def</code> を使います...</summary> コードで `async` / `await` を使用する場合は、`async def` を使います。 ```Python hl_lines="7 12" from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 25.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/first-steps.md
<span style="background-color:#007166"><font color="#D3D7CF"> INFO </font></span> Application startup complete. ``` </div> 在輸出中,有一列類似於: ```hl_lines="4" INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ``` 那列顯示了你的應用程式正在本地端機器上運行的 URL。 ### 查看它 { #check-it } 在瀏覽器中打開 [http://127.0.0.1:8000](http://127.0.0.1:8000)。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 13.3K bytes - Click Count (0) -
docs/ko/docs/tutorial/body-nested-models.md
`list`, `set` 등의 서브타입으로 Pydantic 모델을 사용할 수도 있습니다: {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *} 아래와 같은 JSON 본문을 예상(변환, 검증, 문서화 등)합니다: ```JSON hl_lines="11" { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2, "tags": [ "rock", "metal", "bar" ], "images": [Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 7.7K bytes - Click Count (0) -
docs/zh/docs/tutorial/body-nested-models.md
## 带有一组子模型的属性 { #attributes-with-lists-of-submodels } 你还可以将 Pydantic 模型用作 `list`、`set` 等的子类型: {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *} 这将期望(转换,校验,记录文档等)下面这样的 JSON 请求体: ```JSON hl_lines="11" { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2, "tags": [ "rock", "metal", "bar" ], "images": [Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 6.8K bytes - Click Count (0) -
docs/ko/docs/tutorial/handling-errors.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 10.2K bytes - Click Count (0) -
docs/fr/docs/index.md
return {"item_id": item_id, "q": q} ``` <details markdown="1"> <summary>Ou utilisez <code>async def</code>...</summary> Si votre code utilise `async` / `await`, utilisez `async def` : ```Python hl_lines="7 12" from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 23.8K bytes - Click Count (0) -
docs/ja/docs/python-types.md
これは「ユニオン(union)」と呼ばれます。変数がそれら 2 つの型の集合の和集合のいずれかになり得るからです。 ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial008b_py310.py!} ``` これは `item` が `int` または `str` になり得ることを意味します。 #### `None` の可能性 { #possibly-none } 値が `str` のような型を持つ可能性がある一方で、`None` にもなり得ることを宣言できます。 //// tab | Python 3.10+ ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial009_py310.py!} ``` ////Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 14.3K bytes - Click Count (0)