Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 307 for tutorial008b_py310 (1.03 sec)

  1. docs/pt/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *}
    
    Ela será usada nas documentações interativas:
    
    <img src="/img/tutorial/path-operation-configuration/image02.png">
    
    ## Descrição da resposta { #response-description }
    
    Você pode especificar a descrição da resposta com o parâmetro `response_description`:
    
    {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[19] *}
    
    /// info | Informação
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/body-nested-models.md

    对具有子类型的模型属性也使用相同的标准语法。
    
    因此,在我们的示例中,我们可以将 `tags` 明确地指定为一个「字符串列表」:
    
    {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *}
    
    ## Set 类型
    
    但是随后我们考虑了一下,意识到标签不应该重复,它们很大可能会是唯一的字符串。
    
    Python 具有一种特殊的数据类型来保存一组唯一的元素,即 `set`。
    
    然后我们可以导入 `Set` 并将 `tag` 声明为一个由 `str` 组成的 `set`:
    
    {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *}
    
    这样,即使你收到带有重复数据的请求,这些数据也会被转换为一组唯一项。
    
    而且,每当你输出该数据时,即使源数据有重复,它们也将作为一组唯一项输出。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Obwohl unsere *Pfadoperation-Funktion* hier denselben `user` von der Eingabe zurückgibt, der das Passwort enthält:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ... haben wir deklariert, dass `response_model` das Modell `UserOut` ist, welches das Passwort nicht enthält:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  4. docs/uk/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Тут, навіть якщо *функція операції шляху* повертає об'єкт користувача, який містить пароль:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...ми оголосили `response_model` як нашу модель `UserOut`, яка не містить пароля:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jun 24 19:14:01 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Здесь, хотя *функция-обработчик пути* возвращает тот же входной объект пользователя, содержащий пароль:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...мы объявили `response_model` как модель `UserOut`, в которой нет пароля:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/query-params.md

    ## Optionale Parameter { #optional-parameters }
    
    Auf die gleiche Weise können Sie optionale Query-Parameter deklarieren, indem Sie deren Defaultwert auf `None` setzen:
    
    {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *}
    
    In diesem Fall wird der Funktionsparameter `q` optional und standardmäßig `None` sein.
    
    /// check | Testen
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/body.md

    Primero, necesitas importar `BaseModel` de `pydantic`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Crea tu modelo de datos { #create-your-data-model }
    
    Luego, declaras tu modelo de datos como una clase que hereda de `BaseModel`.
    
    Usa tipos estándar de Python para todos los atributos:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/query-params.md

    但如果访问:
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    查询参数的值就是:
    
    * `skip=20`:在 URL 中设定的值
    * `limit=10`:使用默认值
    
    ## 可选参数
    
    同理,把默认值设为 `None` 即可声明**可选的**查询参数:
    
    {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *}
    
    本例中,查询参数 `q` 是可选的,默认值为 `None`。
    
    /// check | 检查
    
    注意,**FastAPI** 可以识别出 `item_id` 是路径参数,`q` 不是路径参数,而是查询参数。
    
    ///
    
    /// note | 笔记
    
    因为默认值为 `= None`,FastAPI 把 `q` 识别为可选参数。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Aquí, aunque nuestra *path operation function* está devolviendo el mismo usuario de entrada que contiene la contraseña:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...hemos declarado el `response_model` para ser nuestro modelo `UserOut`, que no incluye la contraseña:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/query-params.md

    ## Optional parameters { #optional-parameters }
    
    The same way, you can declare optional query parameters, by setting their default to `None`:
    
    {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *}
    
    In this case, the function parameter `q` will be optional, and will be `None` by default.
    
    /// check
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top