Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for tuple (0.14 sec)

  1. docs/uk/docs/python-types.md

    Зверніть увагу, що змінна `item` є одним із елементів у списку `items`.
    
    І все ж редактор знає, що це `str`, і надає підтримку для цього.
    
    #### Tuple and Set (кортеж та набір)
    
    Ви повинні зробити те ж саме, щоб оголосити `tuple` і `set`:
    
    === "Python 3.8 і вище"
    
        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial007.py!}
        ```
    
    === "Python 3.9 і вище"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  2. docs/ru/docs/python-types.md

    И все же редактор знает, что это `str`, и поддерживает это.
    
    #### `Tuple` и `Set`
    
    Вы бы сделали то же самое, чтобы объявить `tuple` и `set`:
    
    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial007.py!}
    ```
    
    Это означает:
    
    * Переменная `items_t` является `tuple` с 3 элементами: `int`, другим `int` и `str`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. docs/en/docs/python-types.md

    Notice that the variable `item` is one of the elements in the list `items`.
    
    And still, the editor knows it is a `str`, and provides support for that.
    
    #### Tuple and Set
    
    You would do the same to declare `tuple`s and `set`s:
    
    === "Python 3.9+"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/python_types/tutorial007_py39.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
    - 17K bytes
    - Viewed (0)
  4. docs/ja/docs/python-types.md

    タイプがなければ、それはほぼ不可能です。
    
    変数`item`はリスト`items`の要素の一つであることに注意してください。
    
    それでも、エディタはそれが`str`であることを知っていて、そのためのサポートを提供しています。
    
    #### `Tuple` と `Set`
    
    `tuple`と`set`の宣言も同様です:
    
    ```Python hl_lines="1 4"
    {!../../../docs_src/python_types/tutorial007.py!}
    ```
    
    つまり:
    
    * 変数`items_t`は`int`、`int`、`str`の3つの項目を持つ`tuple`です
    
    * 変数`items_s`はそれぞれの項目が`bytes`型である`set`です。
    
    #### `Dict`
    
    `dict`を宣言するためには、カンマ区切りで2つの型パラメータを渡します。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  5. docs/em/docs/python-types.md

    #### 🔢 & ⚒
    
    👆 🔜 🎏 📣 `tuple`Ⓜ & `set`Ⓜ:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial007.py!}
        ```
    
    === "🐍 3️⃣.9️⃣ & 🔛"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/python_types/tutorial007_py39.py!}
        ```
    
    👉 ⛓:
    
    * 🔢 `items_t` `tuple` ⏮️ 3️⃣ 🏬, `int`, ➕1️⃣ `int`, & `str`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/body-nested-models.md

    ```Python hl_lines="1"
    {!> ../../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### Eine `list`e mit einem Typ-Parameter deklarieren
    
    Um Typen wie `list`, `dict`, `tuple` mit inneren Typ-Parametern (inneren Typen) zu deklarieren:
    
    * Wenn Sie eine Python-Version kleiner als 3.9 verwenden, importieren Sie das Äquivalent zum entsprechenden Typ vom `typing`-Modul
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/response-model.md

    ```
    
    !!! tip
        `{"name", "description"}` 语法创建一个具有这两个值的 `set`。
    
        等同于 `set(["name", "description"])`。
    
    #### 使用 `list` 而不是 `set`
    
    如果你忘记使用 `set` 而是使用 `list` 或 `tuple`,FastAPI 仍会将其转换为 `set` 并且正常工作:
    
    ```Python hl_lines="31  37"
    {!../../../docs_src/response_model/tutorial006.py!}
    ```
    
    ## 总结
    
    使用*路径操作装饰器*的 `response_model` 参数来定义响应模型,特别是确保私有数据被过滤掉。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  8. docs/tr/docs/python-types.md

    #### `Tuple` ve `Set`
    
    `Tuple` ve `set`lerin tiplerini bildirmek için de aynısını yapıyoruz:
    
    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial007.py!}
    ```
    
    Bu şu anlama geliyor:
    
    * `items_t` değişkeni sırasıyla `int`, `int`, ve `str` tiplerinden oluşan bir `tuple` türündedir .
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  9. docs/pt/docs/python-types.md

    E, ainda assim, o editor sabe que é um `str` e fornece suporte para isso.
    
    #### `Tuple` e `Set`
    
    Você faria o mesmo para declarar `tuple`s e `set`s:
    
    ```Python hl_lines="1 4"
    {!../../../docs_src/python_types/tutorial007.py!}
    ```
    
    Isso significa que:
    
    * A variável `items_t` é uma `tuple` com 3 itens, um `int`, outro `int` e uma `str`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/response-model.md

    ```
    
    !!! tip "豆知識"
        `{"name", "description"}`の構文はこれら2つの値をもつ`set`を作成します。
    
        これは`set(["name", "description"])`と同等です。
    
    #### `set`の代わりに`list`を使用する
    
    もし`set`を使用することを忘れて、代わりに`list`や`tuple`を使用しても、FastAPIはそれを`set`に変換して正しく動作します:
    
    ```Python hl_lines="31 37"
    {!../../../docs_src/response_model/tutorial006.py!}
    ```
    
    ## まとめ
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top