- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for 120 (0.2 sec)
-
docs/ru/docs/tutorial/extra-models.md
=== "Python 3.9+" ```Python hl_lines="18" {!> ../../../docs_src/extra_models/tutorial004_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="1 20" {!> ../../../docs_src/extra_models/tutorial004.py!} ``` ## Ответ с произвольным `dict`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.6K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
=== "Python 3.9+" ```Python hl_lines="18" {!> ../../../docs_src/extra_models/tutorial004_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="1 20" {!> ../../../docs_src/extra_models/tutorial004.py!} ``` ## Response with arbitrary `dict`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (1) -
docs/pt/docs/tutorial/extra-models.md
Da mesma forma, você pode declarar respostas de listas de objetos. Para isso, use o padrão Python `typing.List` (ou simplesmente `list` no Python 3.9 e superior): === "Python 3.8 and above" ```Python hl_lines="1 20" {!> ../../../docs_src/extra_models/tutorial004.py!} ``` === "Python 3.9 and above" ```Python hl_lines="18" {!> ../../../docs_src/extra_models/tutorial004_py39.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.8K bytes - Viewed (0) -
docs/em/docs/tutorial/extra-models.md
## 📇 🏷 🎏 🌌, 👆 💪 📣 📨 📇 🎚. 👈, ⚙️ 🐩 🐍 `typing.List` (⚖️ `list` 🐍 3️⃣.9️⃣ & 🔛): === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="1 20" {!> ../../../docs_src/extra_models/tutorial004.py!} ``` === "🐍 3️⃣.9️⃣ & 🔛" ```Python hl_lines="18" {!> ../../../docs_src/extra_models/tutorial004_py39.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/extra-models.md
为此,请使用标准的 Python `typing.List`: === "Python 3.9+" ```Python hl_lines="18" {!> ../../../docs_src/extra_models/tutorial004_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="1 20" {!> ../../../docs_src/extra_models/tutorial004.py!} ``` ## 任意 `dict` 构成的响应 任意的 `dict` 都能用于声明响应,只要声明键和值的类型,无需使用 Pydantic 模型。 事先不知道可用的字段 / 属性名时(Pydantic 模型必须知道字段是什么),这种方式特别有用。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 01:15:53 GMT 2024 - 6.7K bytes - Viewed (0) -
docs/de/docs/tutorial/extra-models.md
=== "Python 3.9+" ```Python hl_lines="18" {!> ../../../docs_src/extra_models/tutorial004_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="1 20" {!> ../../../docs_src/extra_models/tutorial004.py!} ``` ## Response mit beliebigem `dict`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:47 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-models.md
```Python hl_lines="1 14 15 18 19 20 33" {!../../../docs_src/extra_models/tutorial003.py!} ``` ## モデルのリスト 同じように、オブジェクトのリストのレスポンスを宣言することができます。 そのためには、標準のPythonの`typing.List`を使用する: ```Python hl_lines="1 20" {!../../../docs_src/extra_models/tutorial004.py!} ``` ## 任意の`dict`を持つレスポンス また、Pydanticモデルを使用せずに、キーと値の型だけを定義した任意の`dict`を使ってレスポンスを宣言することもできます。 これは、有効なフィールド・属性名(Pydanticモデルに必要なもの)を事前に知らない場合に便利です。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 15 15:36:32 GMT 2024 - 6.7K bytes - Viewed (0)