- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for com (0.17 sec)
-
docs/en/docs/tutorial/extra-models.md
Pydantic models have a `.dict()` method that returns a `dict` with the model's data. So, if we create a Pydantic object `user_in` like: ```Python user_in = UserIn(username="john", password="secret", email="john.doe@example.com") ``` and then we call: ```Python user_dict = user_in.dict() ``` we now have a `dict` with the data in the variable `user_dict` (it's a `dict` instead of a Pydantic model object). And if we call:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (1) -
docs/em/docs/tutorial/extra-models.md
``` & โคด๏ธ ๐ฅ ๐ค: ```Python user_dict = user_in.dict() ``` ๐ฅ ๐ โ๏ธ `dict` โฎ๏ธ ๐ฝ ๐ข `user_dict` (โซ๏ธ `dict` โฉ๏ธ Pydantic ๐ท ๐). & ๐ฅ ๐ฅ ๐ค: ```Python print(user_dict) ``` ๐ฅ ๐ ๐ค ๐ `dict` โฎ๏ธ: ```Python { 'username': 'john', 'password': 'secret', 'email': 'john.doe@example.com', 'full_name': None, } ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.8K bytes - Viewed (0)