Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for item (0.15 sec)

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

        {!> ../../../docs_src/python_types/tutorial007.py!}
        ```
    
    This means:
    
    * The variable `items_t` is a `tuple` with 3 items, an `int`, another `int`, and a `str`.
    * The variable `items_s` is a `set`, and each of its items is of type `bytes`.
    
    #### Dict
    
    To define a `dict`, you pass 2 type parameters, separated by commas.
    
    The first type parameter is for the keys of the `dict`.
    
    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)
  2. docs/em/docs/python-types.md

    👈 ⛓: "🔢 `items` `list`, & 🔠 🏬 👉 📇 `str`".
    
    !!! tip
        🚥 👆 ⚙️ 🐍 3️⃣.9️⃣ ⚖️ 🔛, 👆 🚫 ✔️ 🗄 `List` ⚪️➡️ `typing`, 👆 💪 ⚙️ 🎏 🥔 `list` 🆎 ↩️.
    
    🔨 👈, 👆 👨‍🎨 💪 🚚 🐕‍🦺 ⏪ 🏭 🏬 ⚪️➡️ 📇:
    
    <img src="/img/python-types/image05.png">
    
    🍵 🆎, 👈 🌖 💪 🏆.
    
    👀 👈 🔢 `item` 1️⃣ 🔣 📇 `items`.
    
    &amp; , 👨‍🎨 💭 ⚫️ `str`, &amp; 🚚 🐕‍🦺 👈.
    
    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)
  3. docs/ja/docs/python-types.md

    ```
    
    !!! tip "豆知識"
        角括弧内の内部の型は「型パラメータ」と呼ばれています。
    
        この場合、`str`は`List`に渡される型パラメータです。
    
    つまり: 変数`items`は`list`であり、このリストの各項目は`str`です。
    
    そうすることで、エディタはリストの項目を処理している間にもサポートを提供できます。
    
    <img src="https://fastapi.tiangolo.com/img/python-types/image05.png">
    
    タイプがなければ、それはほぼ不可能です。
    
    変数`item`はリスト`items`の要素の一つであることに注意してください。
    
    それでも、エディタはそれが`str`であることを知っていて、そのためのサポートを提供しています。
    
    #### `Tuple` と `Set`
    
    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)
  4. docs/uk/docs/python-types.md

    <img src="/img/python-types/image05.png">
    
    Без типів цього майже неможливо досягти.
    
    Зверніть увагу, що змінна `item` є одним із елементів у списку `items`.
    
    І все ж редактор знає, що це `str`, і надає підтримку для цього.
    
    #### Tuple and Set (кортеж та набір)
    
    Ви повинні зробити те ж саме, щоб оголосити `tuple` і `set`:
    
    === "Python 3.8 і вище"
    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)
  5. docs/ru/docs/python-types.md

    Это означает: "переменная `items` является `list`, и каждый из элементов этого списка является `str`".
    
    Если вы будете так поступать, редактор может оказывать поддержку даже при обработке элементов списка:
    
    <img src="/img/python-types/image05.png">
    
    Без типов добиться этого практически невозможно.
    
    Обратите внимание, что переменная `item` является одним из элементов списка `items`.
    
    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)
  6. docs/vi/docs/python-types.md

    <img src="/img/python-types/image05.png">
    
    Đa phần đều không thể đạt được nếu không có các kiểu dữ liệu.
    
    Chú ý rằng, biến `item` là một trong các phần tử trong danh sách `items`.
    
    Và do vậy, trình soạn thảo biết nó là một `str`, và cung cấp sự hỗ trợ cho nó.
    
    #### Tuple and Set
    
    Bạn sẽ làm điều tương tự để khai báo các `tuple` và  các `set`:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  7. docs/zh/docs/python-types.md

    由于列表是带有"子类型"的类型,所以我们把子类型放在方括号中:
    
    ```Python hl_lines="4"
    {!../../../docs_src/python_types/tutorial006.py!}
    ```
    
    这表示:"变量 `items` 是一个 `list`,并且这个列表里的每一个元素都是 `str`"。
    
    这样,即使在处理列表中的元素时,你的编辑器也可以提供支持。
    
    没有类型,几乎是不可能实现下面这样:
    
    <img src="https://fastapi.tiangolo.com/img/python-types/image05.png">
    
    注意,变量 `item` 是列表 `items` 中的元素之一。
    
    而且,编辑器仍然知道它是一个 `str`,并为此提供了支持。
    
    #### 元组和集合
    
    声明 `tuple` 和 `set` 的方法也是一样的:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. docs/pt/docs/python-types.md

    Isso significa que:
    
    * A variável `prices` é um dict`:
        * As chaves deste `dict` são do tipo `str` (digamos, o nome de cada item).
        * Os valores deste `dict` são do tipo `float` (digamos, o preço de cada item).
    
    #### `Opcional`
    
    Você também pode usar o `Opcional` para declarar que uma variável tem um tipo, como `str`, mas que é "opcional", o que significa que também pode ser `None`:
    
    ```Python hl_lines="1 4"
    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)
  9. docs/tr/docs/python-types.md

    Bunun anlamı şudur: "`items` değişkeni bir `list`tir ve bu listedeki öğelerin her biri bir `str`dir".
    
    Bunu yaparak, düzenleyicinizin listedeki öğeleri işlerken bile destek sağlamasını sağlayabilirsiniz:
    
    <img src="/img/python-types/image05.png">
    
    Tip belirteçleri olmadan, bunu başarmak neredeyse imkansızdır.
    
    `item` değişkeninin `items` listesindeki öğelerden biri olduğuna dikkat edin.
    
    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)
  10. docs/es/docs/python-types.md

    Observa que la variable `item` es unos de los elementos en la lista `items`.
    
    El editor aún sabe que es un `str` y provee soporte para ello.
    
    #### Tuples y Sets
    
    Harías lo mismo para declarar `tuple`s y `set`s:
    
    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial007.py!}
    ```
    
    Esto significa:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
Back to top