Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 202 for dict (0.13 sec)

  1. docs/em/docs/tutorial/security/simple-oauth2.md

        ```
    
    #### 🔃 `**user_dict`
    
    `UserInDB(**user_dict)` ⛓:
    
    *🚶‍♀️ 🔑 & 💲 `user_dict` 🔗 🔑-💲 ❌, 🌓:*
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  2. docs/ru/docs/python-types.md

    #### `Dict`
    
    Чтобы определить `dict`, вы передаёте 2 параметра типов, разделённых запятыми.
    
    Первый параметр типа предназначен для ключей `dict`.
    
    Второй параметр типа предназначен для значений `dict`:
    
    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial008.py!}
    ```
    
    Это означает:
    
    * Переменная `prices` является `dict`:
    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/ko/docs/tutorial/body-nested-models.md

    그리고 어디서나 편집기 지원을 받을수 있습니다.
    
    리스트 내부 항목의 경우에도:
    
    <img src="/img/tutorial/body-nested-models/image01.png">
    
    Pydantic 모델 대신에 `dict`를 직접 사용하여 작업할 경우, 이러한 편집기 지원을 받을수 없습니다.
    
    하지만 수신한 딕셔너리가 자동으로 변환되고 출력도 자동으로 JSON으로 변환되므로 걱정할 필요는 없습니다.
    
    ## 단독 `dict`의 본문
    
    일부 타입의 키와 다른 타입의 값을 사용하여 `dict`로 본문을 선언할 수 있습니다.
    
    (Pydantic을 사용한 경우처럼) 유효한 필드/어트리뷰트 이름이 무엇인지 알 필요가 없습니다.
    
    아직 모르는 키를 받으려는 경우 유용합니다.
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/additional-responses.md

    In diesen Fällen können Sie die Python-Technik zum „Entpacken“ eines `dict`s mit `**dict_to_unpack` verwenden:
    
    ```Python
    old_dict = {
        "old key": "old value",
        "second old key": "second old value",
    }
    new_dict = {**old_dict, "new key": "new value"}
    ```
    
    Hier wird `new_dict` alle Schlüssel-Wert-Paare von `old_dict` plus das neue Schlüssel-Wert-Paar enthalten:
    
    ```Python
    {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:19:26 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/additional-responses.md

    For those cases, you can use the Python technique of "unpacking" a `dict` with `**dict_to_unpack`:
    
    ```Python
    old_dict = {
        "old key": "old value",
        "second old key": "second old value",
    }
    new_dict = {**old_dict, "new key": "new value"}
    ```
    
    Here, `new_dict` will contain all the key-value pairs from `old_dict` plus the new key-value pair:
    
    ```Python
    {
        "old key": "old value",
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/body-nested-models.md

    You couldn't get this kind of editor support if you were working directly with `dict` instead of Pydantic models.
    
    But you don't have to worry about them either, incoming dicts are converted automatically and your output is converted automatically to JSON too.
    
    ## Bodies of arbitrary `dict`s
    
    You can also declare a body as a `dict` with keys of some type and values of some other type.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/async-sql-databases.md

    ### 关于 `{**note.dict(), "id": last_record_id}`
    
    `note` 是 Pydantic `Note` 对象:
    
    `note.dict()` 返回包含如下数据的**字典**:
    
    ```Python
    {
        "text": "Some note",
        "completed": False,
    }
    ```
    
    但它不包含 `id` 字段。
    
    因此要新建一个包含 `note.dict()` 键值对的**字典**:
    
    ```Python
    {**note.dict()}
    ```
    
    `**note.dict()` 直接**解包**键值对, 因此,`{**note.dict()}` 是 `note.dict()` 的副本。
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:44:40 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. docs/es/docs/advanced/response-directly.md

    Por defecto, **FastAPI** convertiría automáticamente ese valor devuelto a JSON usando el `jsonable_encoder` explicado en [Codificador Compatible JSON](../tutorial/encoder.md){.internal-link target=_blank}.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 11:57:27 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. docs/uk/docs/python-types.md

    * Змінна `items_s` це `set`, і кожен його елемент типу `bytes`.
    
    #### Dict (словник)
    
    Щоб оголосити `dict`, вам потрібно передати 2 параметри типу, розділені комами.
    
    Перший параметр типу для ключа у `dict`.
    
    Другий параметр типу для значення у `dict`:
    
    === "Python 3.8 і вище"
    
        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial008.py!}
    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)
  10. docs/pt/docs/python-types.md

    * 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.
    
    O primeiro parâmetro de tipo é para as chaves do `dict`.
    
    O segundo parâmetro de tipo é para os valores do `dict`:
    
    ```Python hl_lines="1 4"
    {!../../../docs_src/python_types/tutorial008.py!}
    ```
    
    Isso significa que:
    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)
Back to top