Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for passed (0.13 sec)

  1. docs/zh/docs/tutorial/extra-models.md

    #### 解包 `dict` 和更多关键字
    
    接下来,继续添加关键字参数 `hashed_password=hashed_password`,例如:
    
    ```Python
    UserInDB(**user_in.dict(), hashed_password=hashed_password)
    ```
    
    ……输出结果如下:
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
        hashed_password = hashed_password,
    )
    ```
    
    !!! warning "警告"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/extra-models.md

    ```
    
    ... weil `user_in.dict()` ein `dict` ist, und dann lassen wir Python es „entpacken“, indem wir es `UserInDB` übergeben, mit vorangestelltem `**`.
    
    Wir erhalten also ein Pydantic-Modell aus den Daten eines anderen Pydantic-Modells.
    
    #### Ein `dict` entpacken und zusätzliche Schlüsselwort-Argumente
    
    Und dann fügen wir ein noch weiteres Schlüsselwort-Argument hinzu, `hashed_password=hashed_password`:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/extra-models.md

    #### `dict`の展開と追加引数
    
    そして、追加のキーワード引数`hashed_password=hashed_password`を以下のように追加すると:
    
    ```Python
    UserInDB(**user_in.dict(), hashed_password=hashed_password)
    ```
    
    ...以下のようになります:
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
        hashed_password = hashed_password,
    )
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:36:32 GMT 2024
    - 6.7K bytes
    - Viewed (0)
Back to top