- Sort Score
- Num 10 results
- Language All
Results 291 - 300 of 375 for Dict (0.01 seconds)
-
docs/zh/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005.py hl[20] *} /// tip | 提示 使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。 /// #### 返回*枚举元素* 即使嵌套在 JSON 请求体里(例如, `dict`),也可以从*路径操作*返回*枚举元素*。 返回给客户端之前,要把枚举元素转换为对应的值(本例中为字符串): {* ../../docs_src/path_params/tutorial005.py hl[18,21,23] *} 客户端中的 JSON 响应如下: ```JSON { "model_name": "alexnet",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Dec 15 16:43:19 GMT 2024 - 7.4K bytes - Click Count (0) -
docs/pt/docs/tutorial/path-params.md
/// #### Retorne membros de enumeração { #return-enumeration-members } Você pode retornar *membros de enum* da sua *operação de rota*, até mesmo aninhados em um corpo JSON (por exemplo, um `dict`). Eles serão convertidos para seus valores correspondentes (strings neste caso) antes de serem retornados ao cliente: {* ../../docs_src/path_params/tutorial005_py39.py hl[18,21,23] *}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 9.8K bytes - Click Count (0) -
docs/de/docs/_llm-test.md
* Das CLI * Das Kommandozeileninterface * der Server * der Client * der Cloudanbieter * der Clouddienst * die Entwicklung * die Entwicklungsphasen * das Dict * das Dictionary * die Enumeration * das Enum * das Enum-Member * der Encoder * der Decoder * kodieren * dekodieren * die Exception * werfen * der Ausdruck
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 07:17:04 GMT 2025 - 12.6K bytes - Click Count (0) -
docs/en/docs/tutorial/handling-errors.md
```JSON { "detail": "Item not found" } ``` /// tip When raising an `HTTPException`, you can pass any value that can be converted to JSON as the parameter `detail`, not only `str`. You could pass a `dict`, a `list`, etc. They are handled automatically by **FastAPI** and converted to JSON. /// ## Add custom headers { #add-custom-headers }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 9K bytes - Click Count (0) -
docs/fr/docs/tutorial/path-params.md
/// #### Retourner des *membres d'énumération* Vous pouvez retourner des *membres d'énumération* dans vos *fonctions de chemin*, même imbriquée dans un JSON (e.g. un `dict`). Ils seront convertis vers leurs valeurs correspondantes (chaînes de caractères ici) avant d'être transmis au client : {* ../../docs_src/path_params/tutorial005.py hl[18,21,23] *}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 16:39:20 GMT 2024 - 9.8K bytes - Click Count (0) -
scripts/translate.py
### Content of code snippets Do not translate the content of code snippets, keep the original in English. For example, «`list`», «`dict`», keep them as is. ### Content of code blocks Do not translate the content of code blocks, except for comments in the language which the code block uses. Examples:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:05:53 GMT 2025 - 34.1K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/first-steps.md
/// note 如果你不知道差別,請查看 [Async: *"In a hurry?"*](../async.md#in-a-hurry){.internal-link target=_blank}. /// ### 第五步:回傳內容 {* ../../docs_src/first_steps/tutorial001.py h1[8] *} 你可以返回一個 `dict`、`list`、單個值作為 `str`、`int` 等。 你也可以返回 Pydantic 模型(稍後你會看到更多關於這方面的內容)。 有很多其他物件和模型會自動轉換為 JSON(包括 ORMs,等等)。試用你最喜歡的,很有可能它們已經有支援。 ## 回顧 * 引入 `FastAPI`. * 建立一個 `app` 實例。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 11.6K bytes - Click Count (0) -
docs/ko/docs/tutorial/first-steps.md
/// note | 참고 차이점을 모르겠다면 [Async: *"바쁘신 경우"*](../async.md#_1){.internal-link target=_blank}을 확인하세요. /// ### 5 단계: 콘텐츠 반환 {* ../../docs_src/first_steps/tutorial001.py hl[8] *} `dict`, `list`, 단일값을 가진 `str`, `int` 등을 반환할 수 있습니다. Pydantic 모델을 반환할 수도 있습니다(나중에 더 자세히 살펴봅니다). JSON으로 자동 변환되는 객체들과 모델들(ORM 등을 포함해서)이 많이 있습니다. 가장 마음에 드는 것을 사용하십시오, 이미 지원되고 있을 것입니다. ## 요약 * `FastAPI` 임포트.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 10.3K bytes - Click Count (0) -
docs/ko/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005.py hl[20] *} /// tip | 팁 `ModelName.lenet.value`로도 값 `"lenet"`에 접근할 수 있습니다. /// #### *열거형 멤버* 반환 *경로 작동*에서 *열거형 멤버*를 반환할 수 있습니다. 이는 중첩 JSON 본문(예: `dict`)내의 값으로도 가능합니다. 클라이언트에 반환하기 전에 해당 값(이 경우 문자열)으로 변환됩니다: {* ../../docs_src/path_params/tutorial005.py hl[18,21,23] *} 클라이언트는 아래의 JSON 응답을 얻습니다: ```JSON { "model_name": "alexnet",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 9.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/handling-errors.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 8.2K bytes - Click Count (0)