- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 877 for tutorial002 (0.1 sec)
-
docs/zh/docs/tutorial/request-files.md
/// ## 导入 `File` 从 `fastapi` 导入 `File` 和 `UploadFile`: ```Python hl_lines="1" {!../../docs_src/request_files/tutorial001.py!} ``` ## 定义 `File` 参数 创建文件(`File`)参数的方式与 `Body` 和 `Form` 一样: ```Python hl_lines="7" {!../../docs_src/request_files/tutorial001.py!} ``` /// info | "说明" `File` 是直接继承自 `Form` 的类。 注意,从 `fastapi` 导入的 `Query`、`Path`、`File` 等项,实际上是返回特定类的函数。 ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params-numeric-validations.md
Ainsi, vous pouvez déclarer votre fonction comme suit : {* ../../docs_src/path_params_numeric_validations/tutorial002.py hl[7] *} Mais gardez à l'esprit que si vous utilisez `Annotated`, vous n'aurez pas ce problème, cela n'aura pas d'importance car vous n'utilisez pas les valeurs par défaut des paramètres de fonction pour `Query()` ou `Path()`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 10:32:37 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/en/docs/python-types.md
{* ../../docs_src/python_types/tutorial003.py hl[1] *} Because the editor knows the types of the variables, you don't only get completion, you also get error checks: <img src="/img/python-types/image04.png"> Now you know that you have to fix it, convert `age` to a string with `str(age)`: {* ../../docs_src/python_types/tutorial004.py hl[2] *} ## Declaring types
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 11:47:53 UTC 2024 - 16.7K bytes - Viewed (0) -
docs/de/docs/tutorial/schema-extra-example.md
```Python hl_lines="2 8-11" {!> ../../docs_src/schema_extra_example/tutorial002_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="4 10-13" {!> ../../docs_src/schema_extra_example/tutorial002.py!} ``` //// ## `examples` im JSON-Schema – OpenAPI Bei Verwendung von: * `Path()` * `Query()` * `Header()` * `Cookie()` * `Body()` * `Form()` * `File()`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.2K bytes - Viewed (0) -
docs/de/docs/tutorial/request-files.md
//// //// tab | Python 3.8+ nicht annotiert /// tip | "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```Python hl_lines="10 15" {!> ../../docs_src/request_files/tutorial002.py!} ``` //// Sie erhalten, wie deklariert, eine `list`e von `bytes` oder `UploadFile`s. /// note | "Technische Details" Sie können auch `from starlette.responses import HTMLResponse` verwenden.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/request_files.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip | Dica Utilize a versão com `Annotated` se possível /// ```Python hl_lines="10 15" {!> ../../docs_src/request_files/tutorial002.py!} ``` //// Você irá receber, como delcarado uma lista (`list`) de `bytes` ou `UploadFile`s, /// note | Detalhes Técnicos
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/first-steps.md
```Python hl_lines="1" {!../../docs_src/first_steps/tutorial001.py!} ``` `FastAPI` 是一个为你的 API 提供了所有功能的 Python 类。 /// note | "技术细节" `FastAPI` 是直接从 `Starlette` 继承的类。 你可以通过 `FastAPI` 使用所有的 Starlette 的功能。 /// ### 步骤 2:创建一个 `FastAPI`「实例」 ```Python hl_lines="3" {!../../docs_src/first_steps/tutorial001.py!} ``` 这里的变量 `app` 会是 `FastAPI` 类的一个「实例」。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/de/docs/tutorial/first-steps.md
```Python hl_lines="7" {!../../docs_src/first_steps/tutorial003.py!} ``` /// note | "Hinweis" Wenn Sie den Unterschied nicht kennen, lesen Sie [Async: *„In Eile?“*](../async.md#in-eile){.internal-link target=_blank}. /// ### Schritt 5: den Inhalt zurückgeben ```Python hl_lines="8" {!../../docs_src/first_steps/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.5K bytes - Viewed (0) -
docs/de/docs/advanced/generate-clients.md
//// tab | Python ```Python {!> ../../docs_src/generate_clients/tutorial004.py!} ``` //// //// tab | Node.js ```Javascript {!> ../../docs_src/generate_clients/tutorial004.js!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.9K bytes - Viewed (0) -
docs/nl/docs/python-types.md
```Python hl_lines="1" {!../../docs_src/python_types/tutorial003.py!} ``` Omdat de editor de types van de variabelen kent, krijgt u niet alleen aanvulling, maar ook controles op fouten: <img src="/img/python-types/image04.png"> Nu weet je hoe je het moet oplossen, converteer `age` naar een string met `str(age)`: ```Python hl_lines="2" {!../../docs_src/python_types/tutorial004.py!} ``` ## Types declareren
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.3K bytes - Viewed (0)