- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 779 for tutorial008_py310 (0.11 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/zh-hant/docs/tutorial/handling-errors.md
但若你在進階情境中需要,可以這樣加入自訂標頭: {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *} ## 安裝自訂例外處理器 { #install-custom-exception-handlers } 你可以使用 [Starlette 的相同例外工具](https://www.starlette.dev/exceptions/) 來加入自訂例外處理器。 假設你有一個自訂例外 `UnicornException`,你(或你使用的函式庫)可能會 `raise` 它。 而你想用 FastAPI 全域處理這個例外。 你可以使用 `@app.exception_handler()` 加入自訂例外處理器: {* ../../docs_src/handling_errors/tutorial003_py310.py hl[5:7,13:18,24] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 8.3K bytes - Click Count (0) -
docs/uk/docs/tutorial/extra-models.md
/// ## Кілька моделей { #multiple-models } Ось загальна ідея того, як можуть виглядати моделі з їхніми полями пароля та місцями використання: {* ../../docs_src/extra_models/tutorial001_py310.py hl[7,9,14,20,22,27:28,31:33,38:39] *} ### Про `**user_in.model_dump()` { #about-user-in-model-dump } #### `.model_dump()` у Pydantic { #pydantics-model-dump } `user_in` - це модель Pydantic класу `UserIn`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 9.4K bytes - Click Count (0) -
docs/es/docs/tutorial/response-model.md
{* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *} Aquí, aunque nuestra *path operation function* está devolviendo el mismo usuario de entrada que contiene la contraseña: {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *} ...hemos declarado el `response_model` para ser nuestro modelo `UserOut`, que no incluye la contraseña:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 17.1K bytes - Click Count (0) -
docs/de/docs/tutorial/response-model.md
{* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *} Obwohl unsere *Pfadoperation-Funktion* hier denselben `user` von der Eingabe zurückgibt, der das Passwort enthält: {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *} ... haben wir deklariert, dass `response_model` das Modell `UserOut` ist, welches das Passwort nicht enthält:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 17.5K bytes - Click Count (0) -
docs/de/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### *Enumerations-Wert* erhalten { #get-the-enumeration-value } Den tatsächlichen Wert (in diesem Fall ein `str`) erhalten Sie via `model_name.value`, oder generell, `your_enum_member.value`: {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip | TippCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 10K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/custom-response.md
{* ../../docs_src/response_directly/tutorial002_py310.py hl[1,18] *} ### `HTMLResponse` { #htmlresponse } 接收文字或位元組並回傳 HTML 回應,如上所述。 ### `PlainTextResponse` { #plaintextresponse } 接收文字或位元組並回傳純文字回應。 {* ../../docs_src/custom_response/tutorial005_py310.py hl[2,7,9] *} ### `JSONResponse` { #jsonresponse } 接收資料並回傳 `application/json` 編碼的回應。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/tr/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### *Enumeration Value*'yu Alalım { #get-the-enumeration-value } Gerçek değeri (bu durumda bir `str`) `model_name.value` ile veya genel olarak `your_enum_member.value` ile alabilirsiniz: {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip | İpucuCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 9.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/query-params.md
{* ../../docs_src/query_params/tutorial002_py310.py hl[7] *} この場合、関数パラメータ `q` はオプショナルとなり、デフォルトでは `None` になります。 /// check | 確認 パスパラメータ `item_id` はパスパラメータであり、`q` はそれとは違ってクエリパラメータであると判別できるほど**FastAPI** が賢いということにも注意してください。 /// ## クエリパラメータの型変換 { #query-parameter-type-conversion } `bool` 型も宣言でき、変換されます: {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *} この場合、以下にアクセスすると: ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 5.6K bytes - Click Count (0) -
docs/pt/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### Obtenha o valor da enumeração { #get-the-enumeration-value } Você pode obter o valor real (um `str` neste caso) usando `model_name.value`, ou, em geral, `your_enum_member.value`: {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip | DicaCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 9.5K bytes - Click Count (0) -
docs/zh/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *} 路径参数 `item_id` 的值会作为参数 `item_id` 传递给你的函数。 运行示例并访问 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo),可获得如下响应: ```JSON {"item_id":"foo"} ``` ## 声明路径参数的类型 { #path-parameters-with-types } 使用 Python 标准类型注解,声明路径操作函数中路径参数的类型: {* ../../docs_src/path_params/tutorial002_py310.py hl[7] *} 本例把 `item_id` 的类型声明为 `int`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.6K bytes - Click Count (0)