Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 685 for Dict (0.08 seconds)

  1. docs/fr/docs/tutorial/first-steps.md

    ///
    
    ### Étape 5 : retourner le contenu { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Vous pouvez retourner un `dict`, une `list`, des valeurs uniques comme `str`, `int`, etc.
    
    Vous pouvez également retourner des modèles Pydantic (vous en verrez plus à ce sujet plus tard).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  2. docs/pt/docs/tutorial/first-steps.md

    ///
    
    ### Passo 5: retorne o conteúdo { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Você pode retornar um `dict`, `list` e valores singulares como `str`, `int`, etc.
    
    Você também pode devolver modelos Pydantic ( você verá mais sobre isso mais tarde).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  3. docs/ja/docs/tutorial/handling-errors.md

    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | 豆知識
    
    `HTTPException`を発生させる際には、`str`だけでなく、JSONに変換できる任意の値を`detail`パラメータとして渡すことができます。
    
    `dict`や`list`などを渡すことができます。
    
    これらは **FastAPI** によって自動的に処理され、JSONに変換されます。
    
    ///
    
    ## カスタムヘッダーの追加 { #add-custom-headers }
    
    例えば、いくつかのタイプのセキュリティのために、HTTPエラーにカスタムヘッダを追加できると便利な状況がいくつかあります。
    
    おそらくコードの中で直接使用する必要はないでしょう。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/advanced/custom-response.md

    ///
    
    ### `Response` { #response }
    
    主要的 `Response` 類別,其他回應皆繼承自它。
    
    你也可以直接回傳它。
    
    它接受以下參數:
    
    - `content` - `str` 或 `bytes`。
    - `status_code` - `int` 類型的 HTTP 狀態碼。
    - `headers` - 由字串組成的 `dict`。
    - `media_type` - 描述 media type 的 `str`。例如 `"text/html"`。
    
    FastAPI(實際上是 Starlette)會自動包含 Content-Length 標頭。也會根據 `media_type`(並為文字型別附加 charset)包含 Content-Type 標頭。
    
    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)
  5. docs/en/docs/tutorial/sql-databases.md

    ### Update a Hero with `HeroUpdate` { #update-a-hero-with-heroupdate }
    
    We can **update a hero**. For this we use an HTTP `PATCH` operation.
    
    And in the code, we get a `dict` with all the data sent by the client, **only the data sent by the client**, excluding any values that would be there just for being the default values. To do it we use `exclude_unset=True`. This is the main trick. 🪄
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 15.3K bytes
    - Click Count (0)
  6. docs/ja/docs/tutorial/first-steps.md

    違いが分からない場合は、[Async: *「急いでいますか?」*](../async.md#in-a-hurry)を確認してください。
    
    ///
    
    ### Step 5: コンテンツの返信 { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    `dict`、`list`、`str`、`int`などの単一の値を返すことができます。
    
    Pydanticモデルを返すこともできます(後で詳しく説明します)。
    
    JSONに自動的に変換されるオブジェクトやモデルは他にもたくさんあります(ORMなど)。 お気に入りのものを使ってみてください。すでにサポートされている可能性が高いです。
    
    ### Step 6: デプロイする { #step-6-deploy-it }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/first-steps.md

    /// note
    
    如果你不知道两者的区别,请查阅 [并发: *赶时间吗?*](../async.md#in-a-hurry)。
    
    ///
    
    ### 步骤 5:返回内容 { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    你可以返回一个 `dict`、`list`,像 `str`、`int` 一样的单个值,等等。
    
    你还可以返回 Pydantic 模型(稍后你将了解更多)。
    
    还有许多其他将会自动转换为 JSON 的对象和模型(包括 ORM 对象等)。尝试下使用你最喜欢的一种,它很有可能已经被支持。
    
    ### 步骤 6:部署 { #step-6-deploy-it }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  8. scripts/general-llm-prompt.md

    ### 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Mar 18 10:55:36 GMT 2026
    - 14.6K bytes
    - Click Count (0)
  9. docs/ja/docs/_llm-test.md

    * 認証プロバイダ
    * 認可
    * 認可フォーム
    * 認可プロバイダ
    * ユーザーが認証する
    * システムがユーザーを認証する
    
    * CLI
    * コマンドラインインターフェース
    
    * サーバー
    * クライアント
    
    * クラウドプロバイダ
    * クラウドサービス
    
    * 開発
    * 開発段階
    
    * dict
    * 辞書
    * 列挙型
    * Enum
    * 列挙メンバー
    
    * エンコーダー
    * デコーダー
    * エンコードする
    * デコードする
    
    * 例外
    * 送出する
    
    * 式
    * 文
    
    * フロントエンド
    * バックエンド
    
    * GitHub ディスカッション
    * GitHub Issue
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  10. helm-releases/minio-4.0.5.tgz

    .Values.rootUser }} {{- .Values.rootUser | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 20 "Key" "rootUser") }} {{- end }} {{- end -}} {{- define "minio.root.password" -}} {{- if .Values.rootPassword }} {{- .Values.rootPassword | toString }} {{- else }} {{- include "minio.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" (include "minio.fullname" .) "Length" 40 "Key" "rootPassword") }} {{-...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sat Jul 16 06:42:56 GMT 2022
    - 18.3K bytes
    - Click Count (0)
Back to Top