Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 236 for url_lines (0.06 seconds)

  1. docs/pt/docs/tutorial/response-model.md

    ///
    
    #### Dados com valores para campos com padrões { #data-with-values-for-fields-with-defaults }
    
    Mas se seus dados tiverem valores para os campos do modelo com valores padrões, como o item com ID `bar`:
    
    ```Python hl_lines="3  5"
    {
        "name": "Bar",
        "description": "The bartenders",
        "price": 62,
        "tax": 20.2
    }
    ```
    
    eles serão incluídos na resposta.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    como en:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    En este caso, **FastAPI** esperará un cuerpo como:
    
    ```JSON hl_lines="2"
    {
        "item": {
            "name": "Foo",
            "description": "The pretender",
            "price": 42.0,
            "tax": 3.2
        }
    }
    ```
    
    en lugar de:
    
    ```JSON
    {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:41:41 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/testing.md

    在 `main.py` 檔案中有你的 **FastAPI** 應用:
    
    
    {* ../../docs_src/app_testing/app_a_py310/main.py *}
    
    ### 測試檔案 { #testing-file }
    
    然後你可以建立一個 `test_main.py` 放你的測試。它可以與應用位於同一個 Python 套件(同一個包含 `__init__.py` 的目錄):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    因為這個檔案在同一個套件中,你可以使用相對匯入,從 `main` 模組(`main.py`)匯入 `app` 這個物件:
    
    {* ../../docs_src/app_testing/app_a_py310/test_main.py hl[3] *}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/testing.md

    在 `main.py` 文件中你有一个 **FastAPI** app:
    
    
    {* ../../docs_src/app_testing/app_a_py310/main.py *}
    
    ### 测试文件 { #testing-file }
    
    然后你会有一个包含测试的文件 `test_main.py` 。app可以像Python包那样存在(一样是目录,但有个 `__init__.py` 文件):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    因为这文件在同一个包中,所以你可以通过相对导入从 `main` 模块(`main.py`)导入`app`对象:
    
    {* ../../docs_src/app_testing/app_a_py310/test_main.py hl[3] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/body-multiple-params.md

    ```Python
    item: Item = Body(embed=True)
    ```
    
    yani şöyle:
    
    {* ../../docs_src/body_multiple_params/tutorial005_an_py310.py hl[17] *}
    
    
    Bu durumda **FastAPI** şu şekilde bir body bekler:
    
    ```JSON hl_lines="2"
    {
        "item": {
            "name": "Foo",
            "description": "The pretender",
            "price": 42.0,
            "tax": 3.2
        }
    }
    ```
    
    şunun yerine:
    
    ```JSON
    {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 12:41:38 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  6. docs/tr/docs/python-types.md

    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial008b_py310.py!}
    ```
    
    Bu, `item`'ın `int` veya `str` olabileceği anlamına gelir.
    
    #### Muhtemelen `None` { #possibly-none }
    
    Bir değerin `str` gibi bir tipi olabileceğini ama aynı zamanda `None` da olabileceğini bildirebilirsiniz.
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  7. docs/uk/docs/python-types.md

    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial008b_py310.py!}
    ```
    
    Це означає, що `item` може бути `int` або `str`.
    
    #### Можливо `None` { #possibly-none }
    
    Ви можете оголосити, що значення може мати тип, наприклад `str`, але також може бути `None`.
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial009_py310.py!}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  8. docs/de/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Das wird einen JSON-Body erwarten (konvertieren, validieren, dokumentieren, usw.) wie:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": [
            "rock",
            "metal",
            "bar"
        ],
        "images": [
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  9. docs/es/docs/python-types.md

    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial008b_py310.py!}
    ```
    
    Esto significa que `item` podría ser un `int` o un `str`.
    
    #### Posiblemente `None` { #possibly-none }
    
    Puedes declarar que un valor podría tener un tipo, como `str`, pero que también podría ser `None`.
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (1)
  10. docs/pt/docs/python-types.md

    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial008b_py310.py!}
    ```
    
    Isso significa que `item` pode ser um `int` ou um `str`.
    
    #### Possivelmente `None` { #possibly-none }
    
    Você pode declarar que um valor pode ter um tipo, como `str`, mas que ele também pode ser `None`.
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="1"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 11.7K bytes
    - Click Count (0)
Back to Top