Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 152 for tutorial008_py310 (0.51 seconds)

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

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Because the editor knows the types of the variables, you don't only get completion, you also get error checks:
    
    <img src="/img/python-types/image04.png">
    
    Now you know that you have to fix it, convert `age` to a string with `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    ## Declaring types { #declaring-types }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  2. pyproject.toml

    "docs_src/dependencies/tutorial008_py310.py" = ["F821"]
    "docs_src/dependencies/tutorial008_py39.py" = ["F821"]
    "docs_src/dependencies/tutorial008b_an_py310.py" = ["B904"]
    "docs_src/dependencies/tutorial008b_an_py39.py" = ["B904"]
    "docs_src/dependencies/tutorial008b_py310.py" = ["B904"]
    "docs_src/dependencies/tutorial008b_py39.py" = ["B904"]
    "docs_src/dependencies/tutorial009_py310.py" = ["F821"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/python-types.md

    你也可以用相同方式來宣告 `tuple` 與 `set`:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    這代表:
    
    * 變數 `items_t` 是一個有 3 個項目的 `tuple`,分別是 `int`、`int` 和 `str`。
    * 變數 `items_s` 是一個 `set`,而其中每個項目都是 `bytes` 型別。
    
    #### Dict { #dict }
    
    定義 `dict` 時,你需要傳入 2 個以逗號分隔的型別參數。
    
    第一個型別參數是 `dict` 的鍵(key)。
    
    第二個型別參數是 `dict` 的值(value):
    
    {* ../../docs_src/python_types/tutorial008_py310.py hl[1] *}
    
    這代表:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  4. docs/zh/docs/python-types.md

    声明 `tuple` 和 `set` 的方式类似:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    这表示:
    
    * 变量 `items_t` 是一个含有 3 个元素的 `tuple`,分别是一个 `int`、另一个 `int`,以及一个 `str`。
    * 变量 `items_s` 是一个 `set`,其中每个元素的类型是 `bytes`。
    
    #### 字典 { #dict }
    
    定义 `dict` 时,需要传入 2 个类型参数,用逗号分隔。
    
    第一个类型参数用于字典的键。
    
    第二个类型参数用于字典的值:
    
    {* ../../docs_src/python_types/tutorial008_py310.py hl[1] *}
    
    这表示:
    
    * 变量 `prices` 是一个 `dict`:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  5. docs/ja/docs/python-types.md

    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    つまり:
    
    * 変数 `items_t` は `int`、別の `int`、`str` の 3 つの項目を持つ `tuple` です。
    * 変数 `items_s` は `set` であり、その各項目は `bytes` 型です。
    
    #### Dict { #dict }
    
    `dict` を定義するには、カンマ区切りで 2 つの型パラメータを渡します。
    
    最初の型パラメータは `dict` のキーです。
    
    2 番目の型パラメータは `dict` の値です:
    
    {* ../../docs_src/python_types/tutorial008_py310.py hl[1] *}
    
    つまり:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  6. docs/ru/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Так как редактор кода знает типы переменных, вы получаете не только автозавершение, но и проверки ошибок:
    
    <img src="/img/python-types/image04.png">
    
    Теперь вы знаете, что нужно исправить — преобразовать `age` в строку с помощью `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    ## Объявление типов { #declaring-types }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  7. docs/uk/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *}
    
    ## Типи множин { #set-types }
    
    Але потім ми подумали, що теги не повинні повторюватися, вони, ймовірно, повинні бути унікальними рядками.
    
    І Python має спеціальний тип даних для множин унікальних елементів — це `set`.
    
    Тому ми можемо оголосити `tags` як множину рядків:
    
    {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  8. docs/ru/docs/tutorial/body-nested-models.md

    Например, мы можем определить модель `Image`:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### Использование подмодели как типа { #use-the-submodel-as-a-type }
    
    Также мы можем использовать эту модель как тип атрибута:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    Это означает, что **FastAPI** будет ожидать тело запроса, аналогичное этому:
    
    ```JSON
    {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  9. docs/de/docs/python-types.md

    Nehmen wir an, Sie haben eine Klasse `Person`, mit einem Namen:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[1:3] *}
    
    Dann können Sie eine Variable vom Typ `Person` deklarieren:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[6] *}
    
    Und wiederum bekommen Sie die volle Editor-Unterstützung:
    
    <img src="/img/python-types/image06.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 12.6K bytes
    - Click Count (1)
  10. docs/es/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Porque el editor conoce los tipos de las variables, no solo obtienes autocompletado, también obtienes chequeo de errores:
    
    <img src="/img/python-types/image04.png">
    
    Ahora sabes que debes corregirlo, convertir `age` a un string con `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (1)
Back to Top