Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for last (0.12 sec)

  1. docs/de/docs/tutorial/extra-models.md

    ## Listen von Modellen
    
    Genauso können Sie eine Response deklarieren, die eine Liste von Objekten ist.
    
    Verwenden Sie dafür Pythons Standard `typing.List` (oder nur `list` in Python 3.9 und darüber):
    
    === "Python 3.9+"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/extra_models/tutorial004_py39.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/extra-models.md

    === "Python 3.8+"
    
        ```Python hl_lines="1  14-15  18-20  33"
        {!> ../../../docs_src/extra_models/tutorial003.py!}
        ```
    
    ## 模型列表
    
    使用同样的方式也可以声明由对象列表构成的响应。
    
    为此,请使用标准的 Python `typing.List`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/extra_models/tutorial004_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1  20"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/extra-models.md

    ```Python hl_lines="1 14 15 18 19 20 33"
    {!../../../docs_src/extra_models/tutorial003.py!}
    ```
    
    ## モデルのリスト
    
    同じように、オブジェクトのリストのレスポンスを宣言することができます。
    
    そのためには、標準のPythonの`typing.List`を使用する:
    
    ```Python hl_lines="1 20"
    {!../../../docs_src/extra_models/tutorial004.py!}
    ```
    
    ## 任意の`dict`を持つレスポンス
    
    また、Pydanticモデルを使用せずに、キーと値の型だけを定義した任意の`dict`を使ってレスポンスを宣言することもできます。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:36:32 GMT 2024
    - 6.7K bytes
    - Viewed (0)
Back to top