Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for fdocs3 (0.16 sec)

  1. docs/ko/docs/tutorial/body.md

        ```Python hl_lines="2"
        {!> ../../../docs_src/body/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body/tutorial001.py!}
        ```
    
    ## 여러분의 데이터 모델 만들기
    
    `BaseModel`를 상속받은 클래스로 여러분의 데이터 모델을 선언합니다.
    
    모든 어트리뷰트에 대해 표준 파이썬 타입을 사용합니다:
    
    === "Python 3.10+"
    
        ```Python hl_lines="5-9"
        {!> ../../../docs_src/body/tutorial001_py310.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/body.md

    ## Pydanticの `BaseModel` をインポート
    
    ます初めに、 `pydantic` から `BaseModel` をインポートする必要があります:
    
    ```Python hl_lines="2"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    ## データモデルの作成
    
    そして、`BaseModel` を継承したクラスとしてデータモデルを宣言します。
    
    すべての属性にpython標準の型を使用します:
    
    ```Python hl_lines="5-9"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    クエリパラメータの宣言と同様に、モデル属性がデフォルト値をもつとき、必須な属性ではなくなります。それ以外は必須になります。オプショナルな属性にしたい場合は `None` を使用してください。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/body.md

    === "Python 3.10+"
    
        ```Python hl_lines="2"
        {!> ../../../docs_src/body/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body/tutorial001.py!}
        ```
    
    ## 创建数据模型
    
    把数据模型声明为继承 `BaseModel` 的类。
    
    使用 Python 标准类型声明所有属性:
    
    === "Python 3.10+"
    
        ```Python hl_lines="5-9"
        {!> ../../../docs_src/body/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/body.md

        ```Python hl_lines="4"
        {!> ../../../docs_src/body/tutorial001.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="2"
        {!> ../../../docs_src/body/tutorial001_py310.py!}
        ```
    
    ## ✍ 👆 💽 🏷
    
    ⤴️ 👆 📣 👆 💽 🏷 🎓 👈 😖 ⚪️➡️ `BaseModel`.
    
    ⚙️ 🐩 🐍 🆎 🌐 🔢:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="7-11"
        {!> ../../../docs_src/body/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/body.md

    ```Python hl_lines="4"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    ## Создание вашей собственной модели
    
    После этого вы описываете вашу модель данных как класс, наследующий от `BaseModel`.
    
    Используйте аннотации типов Python для всех атрибутов:
    
    ```Python hl_lines="7-11"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/body.md

    Primeiro, você precisa importar `BaseModel` do `pydantic`:
    
    ```Python hl_lines="4"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    ## Crie seu modelo de dados
    
    Então você declara seu modelo de dados como uma classe que herda `BaseModel`.
    
    Utilize os tipos Python padrão para todos os atributos:
    
    ```Python hl_lines="7-11"
    {!../../../docs_src/body/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.1K bytes
    - Viewed (0)
Back to top