Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for John (0.17 sec)

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

    ```Python
    user_in = UserIn(username="john", password="secret", email="john******@****.***")
    ```
    
    就能以如下方式调用:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    现在,变量 `user_dict`中的就是包含数据的**字典**(变量 `user_dict` 是字典,不是 Pydantic 模型对象)。
    
    以如下方式调用:
    
    ```Python
    print(user_dict)
    ```
    
    输出的就是 Python **字典**:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
    Plain Text
    - Registered: Sun Apr 21 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

    Pydantic-Modelle haben eine `.dict()`-Methode, die ein `dict` mit den Daten des Modells zurückgibt.
    
    Wenn wir also ein Pydantic-Objekt `user_in` erstellen, etwa so:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="john******@****.***")
    ```
    
    und wir rufen seine `.dict()`-Methode auf:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/extra-models.md

    ```Python
    user_in = UserIn(username="john", password="secret", email="john******@****.***")
    ```
    
    & ⤴️ 👥 🤙:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    👥 🔜 ✔️ `dict` ⏮️ 💽 🔢 `user_dict` (⚫️ `dict` ↩️ Pydantic 🏷 🎚).
    
    & 🚥 👥 🤙:
    
    ```Python
    print(user_dict)
    ```
    
    👥 🔜 🤚 🐍 `dict` ⏮️:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. 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******@****.***")
    ```
    
    and then we call:
    
    ```Python
    user_dict = user_in.dict()
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  5. docs/tr/docs/python-types.md

    ## Motivasyon
    
    Basit bir örnek ile başlayalım:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Programın çıktısı:
    
    ```
    John Doe
    ```
    
    Fonksiyon sırayla şunları yapar:
    
    * `first_name` ve `last_name` değerlerini alır.
    * `title()` ile değişkenlerin ilk karakterlerini büyütür.
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  6. docs/uk/docs/python-types.md

    ## Мотивація
    
    Давайте почнемо з простого прикладу:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Виклик цієї програми виводить:
    
    ```
    John Doe
    ```
    
    Функція виконує наступне:
    
    * Бере `first_name` та `last_name`.
    * Конвертує кожну літеру кожного слова у верхній регістр за допомогою `title()`.
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  7. chainable_api.go

    	}
    	return
    }
    
    // Or add OR conditions
    //
    // Or is used to chain together queries with an OR.
    //
    //	// Find the first user with name equal to jinzhu or john
    //	db.Where("name = ?", "jinzhu").Or("name = ?", "john").First(&user)
    func (db *DB) Or(query interface{}, args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	if conds := tx.Statement.BuildCondition(query, args...); len(conds) > 0 {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  8. docs/vi/docs/python-types.md

    ## Động lực
    
    Hãy bắt đầu với một ví dụ đơn giản:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Kết quả khi gọi chương trình này:
    
    ```
    John Doe
    ```
    
    Hàm thực hiện như sau:
    
    * Lấy một `first_name` và `last_name`.
    * Chuyển đổi kí tự đầu tiên của mỗi biến sang kiểu chữ hoa với `title()`.
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  9. docs/de/docs/python-types.md

    ## Motivation
    
    Fangen wir mit einem einfachen Beispiel an:
    
    ```Python
    {!../../../docs_src/python_types/tutorial001.py!}
    ```
    
    Dieses Programm gibt aus:
    
    ```
    John Doe
    ```
    
    Die Funktion macht Folgendes:
    
    * Nimmt einen `first_name` und `last_name`.
    * Schreibt den ersten Buchstaben eines jeden Wortes groß, mithilfe von `title()`.
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  10. docs/tr/docs/features.md

        return user_id
    
    
    # Pydantic modeli
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Sonrasında bu şekilde kullanabilirsin
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    second_user_data = {
        "id": 4,
        "name": "Mary",
        "joined": "2018-11-30",
    }
    
    my_second_user: User = User(**second_user_data)
    ```
    
    !!! info
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.1K bytes
    - Viewed (0)
Back to top