Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 877 for tutorial002 (0.11 sec)

  1. docs/em/docs/tutorial/request-files.md

    ///
    
    ## 🗄 `File`
    
    🗄 `File` & `UploadFile` ⚪️➡️ `fastapi`:
    
    ```Python hl_lines="1"
    {!../../docs_src/request_files/tutorial001.py!}
    ```
    
    ## 🔬 `File` 🔢
    
    ✍ 📁 🔢 🎏 🌌 👆 🔜 `Body` ⚖️ `Form`:
    
    ```Python hl_lines="7"
    {!../../docs_src/request_files/tutorial001.py!}
    ```
    
    /// info
    
    `File` 🎓 👈 😖 🔗 ⚪️➡️ `Form`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/body-multiple-params.md

    ```Python hl_lines="20"
    {!> ../../docs_src/body_multiple_params/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="22"
    {!> ../../docs_src/body_multiple_params/tutorial002.py!}
    ```
    
    ////
    
    在这种情况下,**FastAPI** 将注意到该函数中有多个请求体参数(两个 Pydantic 模型参数)。
    
    因此,它将使用参数名称作为请求体中的键(字段名称),并期望一个类似于以下内容的请求体:
    
    ```JSON
    {
        "item": {
            "name": "Foo",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/body-multiple-params.md

        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    しかし、`item`と`user`のように複数のボディパラメータを宣言することもできます:
    
    ```Python hl_lines="22"
    {!../../docs_src/body_multiple_params/tutorial002.py!}
    ```
    
    この場合、**FastAPI**は関数内に複数のボディパラメータ(Pydanticモデルである2つのパラメータ)があることに気付きます。
    
    そのため、パラメータ名をボディのキー(フィールド名)として使用し、以下のようなボディを期待しています:
    
    ```JSON
    {
        "item": {
            "name": "Foo",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/path-params.md

    ```Python hl_lines="16"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    ### 查看文档
    
     API 文档会显示预定义*路径参数*的可用值:
    
    <img src="/img/tutorial/path-params/image03.png">
    
    ### 使用 Python _枚举类型_
    
    *路径参数*的值是枚举的元素。
    
    #### 比较*枚举元素*
    
    枚举类 `ModelName` 中的*枚举元素*支持比较操作:
    
    ```Python hl_lines="17"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    #### 获取*枚举值*
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. docs/em/docs/python-types.md

    ```Python
    {!../../docs_src/python_types/tutorial001.py!}
    ```
    
    🤙 👉 📋 🔢:
    
    ```
    John Doe
    ```
    
    🔢 🔨 📄:
    
    * ✊ `first_name` &amp; `last_name`.
    * 🗜 🥇 🔤 🔠 1️⃣ ↖ 💼 ⏮️ `title()`.
    * <abbr title="Puts them together, as one. With the contents of one after the other.">🔢</abbr> 👫 ⏮️ 🚀 🖕.
    
    ```Python hl_lines="2"
    {!../../docs_src/python_types/tutorial001.py!}
    ```
    
    ### ✍ ⚫️
    
    ⚫️ 📶 🙅 📋.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. docs/ja/docs/advanced/websockets.md

    しかし、これはWebSocketのサーバーサイドに焦点を当て、実用的な例を示す最も簡単な方法です。
    
    ```Python hl_lines="2  6-38  41-43"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## `websocket` を作成する
    
    **FastAPI** アプリケーションで、`websocket` を作成します。
    
    ```Python hl_lines="1  46-47"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    /// note | "技術詳細"
    
    `from starlette.websockets import WebSocket` を使用しても構いません.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/events.md

    ```Python hl_lines="8"
    {!../../docs_src/events/tutorial001.py!}
    ```
    
    👉 💼, `startup` 🎉 🐕‍🦺 🔢 🔜 🔢 🏬 "💽" ( `dict`) ⏮️ 💲.
    
    👆 💪 🚮 🌅 🌘 1️⃣ 🎉 🐕‍🦺 🔢.
    
    &amp; 👆 🈸 🏆 🚫 ▶️ 📨 📨 ⏭ 🌐 `startup` 🎉 🐕‍🦺 ✔️ 🏁.
    
    ### `shutdown` 🎉
    
    🚮 🔢 👈 🔜 🏃 🕐❔ 🈸 🤫 🔽, 📣 ⚫️ ⏮️ 🎉 `"shutdown"`:
    
    ```Python hl_lines="6"
    {!../../docs_src/events/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. docs/ru/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!}
    ```
    
    ////
    
    /// warning | Внимание
    
    Имейте в виду, что эти дополнительные переданные аргументы не добавляют никакой валидации, только дополнительную информацию для документации.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. docs/de/docs/how-to/separate-openapi-schemas.md

    </details>
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9"
    {!> ../../docs_src/separate_openapi_schemas/tutorial001.py[ln:1-9]!}
    
    # Code unterhalb weggelassen 👇
    ```
    
    <details>
    <summary>👀 Vollständige Dateivorschau</summary>
    
    ```Python
    {!> ../../docs_src/separate_openapi_schemas/tutorial001.py!}
    ```
    
    </details>
    
    ////
    
    ### Modell für Eingabe
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    이것은 파이썬 함수입니다.
    
    URL "`/`"에 대한 `GET` 작동을 사용하는 요청을 받을 때마다 **FastAPI**에 의해 호출됩니다.
    
    위의 예시에서 이 함수는 `async`(비동기) 함수입니다.
    
    ---
    
    `async def`을 이용하는 대신 일반 함수로 정의할 수 있습니다:
    
    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note | "참고"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top