Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for patrice (0.24 sec)

  1. docs/it/docs/index.md

    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    ...da:
    
    ```Python
            ... "item_name": item.name ...
    ```
    
    ...a:
    
    ```Python
            ... "item_price": item.price ...
    ```
    
    ...e osserva come il tuo editor di testo autocompleterà gli attributi e sarà in grado di riconoscere i loro tipi:
    
    ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body/test_tutorial001_py310.py

        response = client.post("/items/", json={"name": "Foo", "price": 50.5})
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 50.5,
            "description": None,
            "tax": None,
        }
    
    
    @needs_py310
    def test_post_with_str_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": "50.5"})
        assert response.status_code == 200
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (2)
  3. tests/test_tutorial/test_body/test_tutorial001.py

        response = client.post("/items/", json={"name": "Foo", "price": 50.5})
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 50.5,
            "description": None,
            "tax": None,
        }
    
    
    def test_post_with_str_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": "50.5"})
        assert response.status_code == 200
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (7)
  4. docs/pt/docs/index.md

    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    ...de:
    
    ```Python
            ... "item_name": item.name ...
    ```
    
    ...para:
    
    ```Python
            ... "item_price": item.price ...
    ```
    
    ...e veja como seu editor irá auto-completar os atributos e saberá os tipos:
    
    ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/body-multiple-params.md

    ```JSON hl_lines="2"
    {
        "item": {
            "name": "Foo",
            "description": "The pretender",
            "price": 42.0,
            "tax": 3.2
        }
    }
    ```
    
    вместо этого:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    ## Резюме
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/body.md

    ```JSON
    {
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    ...поскольку `description` и `tax` являются необязательными (с `None` в качестве значения по умолчанию), вот такой JSON "объект" также подходит:
    
    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    ## Объявление как параметра функции
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  7. docs/ko/docs/index.md

    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    ...에서:
    
    ```Python
            ... "item_name": item.name ...
    ```
    
    ...으로:
    
    ```Python
            ... "item_price": item.price ...
    ```
    
    ...그러고 나서 여러분의 편집기가 속성과 타입을 알고 자동 완성하는지 보십시오:
    
    ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  8. docs/zh-hant/docs/index.md

    試著修改以下程式碼:
    
    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    從:
    
    ```Python
            ... "item_name": item.name ...
    ```
    
    修改為:
    
    ```Python
            ... "item_price": item.price ...
    ```
    
    然後觀察你的編輯器,會自動補全並且還知道他們的型別:
    
    ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
    
    有關更多功能的完整範例,可以參考 <a href="https://fastapi.tiangolo.com/tutorial/">教學 - 使用者指南</a>。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.8K bytes
    - Viewed (0)
  9. docs/pl/docs/index.md

    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    ...z:
    
    ```Python
            ... "item_name": item.name ...
    ```
    
    ...na:
    
    ```Python
            ... "item_price": item.price ...
    ```
    
    ...i zobacz jak edytor kodu automatycznie uzupełni atrybuty i będzie znał ich typy:
    
    ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  10. docs/ru/docs/index.md

    ```Python
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    ...из:
    
    ```Python
            ... "item_name": item.name ...
    ```
    
    ...в:
    
    ```Python
            ... "item_price": item.price ...
    ```
    
    ... и посмотрите, как ваш редактор будет автоматически заполнять атрибуты и узнавать их типы:
    
    ![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
Back to top