Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for init (0.16 sec)

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

    === "Python 3.8+"
    
        ```Python hl_lines="1  4"
        {!> ../../../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.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  2. docs/em/docs/python-types.md

        ```
    
    === "🐍 3️⃣.9️⃣ & 🔛"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/python_types/tutorial007_py39.py!}
        ```
    
    👉 ⛓:
    
    * 🔢 `items_t` `tuple` ⏮️ 3️⃣ 🏬, `int`, ➕1️⃣ `int`, & `str`.
    * 🔢 `items_s` `set`, & 🔠 🚮 🏬 🆎 `bytes`.
    
    ####  #️⃣
    
    🔬 `dict`, 👆 🚶‍♀️ 2️⃣ 🆎 🔢, 🎏 ❕.
    
    🥇 🆎 🔢 🔑 `dict`.
    
    🥈 🆎 🔢 💲 `dict`:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. docs/ja/docs/python-types.md

    それでも、エディタはそれが`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つの型パラメータを渡します。
    
    最初の型パラメータは`dict`のキーです。
    
    2番目の型パラメータは`dict`の値です。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. docs/uk/docs/python-types.md

        ```
    
    === "Python 3.9 і вище"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/python_types/tutorial007_py39.py!}
        ```
    
    Це означає:
    
    * Змінна `items_t` це `tuple` з 3 елементами, `int`, ще `int`, та `str`.
    * Змінна `items_s` це `set`, і кожен його елемент типу `bytes`.
    
    #### Dict (словник)
    
    Щоб оголосити `dict`, вам потрібно передати 2 параметри типу, розділені комами.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  5. docs/ru/docs/python-types.md

    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial007.py!}
    ```
    
    Это означает:
    
    * Переменная `items_t` является `tuple` с 3 элементами: `int`, другим `int` и `str`.
    * Переменная `items_s` является `set` и каждый элемент имеет тип `bytes`.
    
    #### `Dict`
    
    Чтобы определить `dict`, вы передаёте 2 параметра типов, разделённых запятыми.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  6. docs/vi/docs/python-types.md

    === "Python 3.8+"
    
        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial007.py!}
        ```
    
    Điều này có nghĩa là:
    
    * Biến `items_t` là một `tuple` với 3 phần tử, một `int`, một `int` nữa, và một `str`.
    * Biến `items_s` là một `set`, và mỗi phần tử của nó có kiểu `bytes`.
    
    #### Dict
    
    Để định nghĩa một `dict`, bạn truyền 2 tham số kiểu dữ liệu, phân cách bởi dấu phẩy.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 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 类型提示简介
    
    **Python 3.6+ 版本**加入了对"类型提示"的支持。
    
    这些**"类型提示"**是一种新的语法(在 Python 3.6 版本加入)用来声明一个变量的<abbr title="例如:str、int、float、bool">类型</abbr>。
    
    通过声明变量的类型,编辑器和一些工具能给你提供更好的支持。
    
    这只是一个关于 Python 类型提示的**快速入门 / 复习**。它仅涵盖与 **FastAPI** 一起使用所需的最少部分...实际上只有很少一点。
    
    整个 **FastAPI** 都基于这些类型提示构建,它们带来了许多优点和好处。
    
    但即使你不会用到 **FastAPI**,了解一下类型提示也会让你从中受益。
    
    !!! note
        如果你已经精通 Python,并且了解关于类型提示的一切知识,直接跳到下一章节吧。
    
    ## 动机
    
    让我们从一个简单的例子开始:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. docs/tr/docs/python-types.md

    `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 .
    * `items_s` ise her öğesi `bytes` türünde olan bir `set` örneğidir.
    
    #### `Dict`
    
    Bir `dict` tanımlamak için virgülle ayrılmış iki parametre verebilirsiniz.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  9. docs/pt/docs/python-types.md

    ```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`.
    * A variável `items_s` é um `set`, e cada um de seus itens é do tipo `bytes`.
    
    #### `Dict`
    
    Para definir um `dict`, você passa 2 parâmetros de tipo, separados por vírgulas.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. docs/es/docs/python-types.md

    Harías lo mismo para declarar `tuple`s y `set`s:
    
    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial007.py!}
    ```
    
    Esto significa:
    
    * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`.
    * La variable `items_s` es un `set` y cada uno de sus ítems es de tipo `bytes`.
    
    #### Diccionarios (Dicts)
    
    Para definir un `dict` le pasas 2 sub-tipos separados por comas.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
Back to top