- Sort Score
- Num 10 results
- Language All
Results 491 - 500 of 559 for dice (0.03 seconds)
-
docs/ja/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial005.py hl[20] *} /// tip | 豆知識 `ModelName.lenet.value` でも `"lenet"` 値にアクセスできます。 /// #### *列挙型メンバ*の返却 *path operation* から*列挙型メンバ*を返すことができます。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 - 10.4K 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) -
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/en/docs/contributing.md
## Developing If you already cloned the <a href="https://github.com/fastapi/fastapi" class="external-link" target="_blank">fastapi repository</a> and you want to deep dive in the code, here are some guidelines to set up your environment. ### Virtual environment
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Sep 21 11:29:04 GMT 2025 - 15.1K bytes - Click Count (0) -
docs/ru/docs/tutorial/sql-databases.md
### Обновление героя с `HeroUpdate` { #update-a-hero-with-heroupdate } Мы можем **обновить героя**. Для этого используем HTTP операцию `PATCH`. В коде мы получаем `dict` со всеми данными, отправленными клиентом — **только с данными, отправленными клиентом**, исключая любые значения, которые были бы там лишь как значения по умолчанию. Для этого мы используем `exclude_unset=True`. Это главный трюк. 🪄Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Dec 11 21:25:03 GMT 2025 - 23.6K bytes - Click Count (0) -
docs/ja/docs/advanced/custom-response.md
/// ### `Response` メインの `Response` クラスで、他の全てのレスポンスはこれを継承しています。 直接返すことができます。 以下のパラメータを受け付けます。 * `content` - `str` か `bytes`。 * `status_code` - `int` のHTTPステータスコード。 * `headers` - 文字列の `dict` 。 * `media_type` - メディアタイプを示す `str` 。例えば `"text/html"` 。 FastAPI (実際にはStarlette) は自動的にContent-Lengthヘッダーを含みます。また、media_typeに基づいたContent-Typeヘッダーを含み、テキストタイプのためにcharsetを追加します。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 10.4K bytes - Click Count (0) -
docs/ja/docs/tutorial/dependencies/index.md
そして何でも返すことができます。 この場合、この依存関係は以下を期待しています: * オプショナルのクエリパラメータ`q`は`str`です。 * オプショナルのクエリパラメータ`skip`は`int`で、デフォルトは`0`です。 * オプショナルのクエリパラメータ`limit`は`int`で、デフォルトは`100`です。 そして、これらの値を含む`dict`を返します。 ### `Depends`のインポート {* ../../docs_src/dependencies/tutorial001.py hl[3] *} ### "dependant"での依存関係の宣言 *path operation関数*のパラメータに`Body`や`Query`などを使用するのと同じように、新しいパラメータに`Depends`を使用することができます: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/ko/docs/advanced/custom-response.md
기본 `Response` 클래스는 다른 모든 응답 클래스의 부모 클래스 입니다. 이 클래스를 직접 반환할 수 있습니다. 다음 매개변수를 받을 수 있습니다: * `content` - `str` 또는 `bytes`. * `status_code` - HTTP 상태코드를 나타내는 `int`. * `headers` - 문자열로 이루어진 `dict`. * `media_type` - 미디어 타입을 나타내는 `str` 예: `"text/html"`. FastAPI (실제로는 Starlette)가 자동으로 `Content-Length` 헤더를 포함시킵니다. 또한 `media_type`에 기반하여 `Content-Type` 헤더를 포함하며, 텍스트 타입의 경우 문자 집합을 추가 합니다.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Feb 15 11:21:20 GMT 2025 - 13.4K bytes - Click Count (0)