- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 593 for item_2 (0.1 sec)
-
docs/de/docs/python-types.md
//// tab | Python 3.8+ ```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial007.py!} ``` //// Das bedeutet: * Die Variable `items_t` ist ein `tuple` mit 3 Elementen, einem `int`, einem weiteren `int` und einem `str`. * Die Variable `items_s` ist ein `set`, und jedes seiner Elemente ist vom Typ `bytes`. #### Dict Um ein `dict` zu definieren, รผbergeben Sie zwei Typ-Parameter, getrennt durch Kommas.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.1K bytes - Viewed (0) -
docs_src/python_types/tutorial007_py39.py
def process_items(items_t: tuple[int, int, str], items_s: set[bytes]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 99 bytes - Viewed (0) -
docs/em/docs/tutorial/path-params.md
```Python hl_lines="6-7" {!../../docs_src/path_params/tutorial001.py!} ``` ๐ฒ โก ๐ข `item_id` ๐ ๐ถโโ๏ธ ๐ ๐ข โ `item_id`. , ๐ฅ ๐ ๐ ๐ ๐ผ & ๐ถ <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>, ๐ ๐ ๐ ๐จ: ```JSON {"item_id":"foo"} ``` ## โก ๐ข โฎ๏ธ ๐ ๐ ๐ช ๐ฃ ๐ โก ๐ข ๐ข, โ๏ธ ๐ฉ ๐ ๐ โ: ```Python hl_lines="7"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
docs/de/docs/tutorial/path-params.md
{!../../docs_src/path_params/tutorial001.py!} ``` Der Wert des Pfad-Parameters `item_id` wird Ihrer Funktion als das Argument `item_id` รผbergeben. Wenn Sie dieses Beispiel ausfรผhren und auf <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a> gehen, sehen Sie als Response: ```JSON {"item_id":"foo"} ``` ## Pfad-Parameter mit Typen
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.2K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial008.py
from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Union[str, None] = Query( default=None, title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, ), ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 466 bytes - Viewed (0) -
fastapi/routing.py
from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None app = FastAPI() router = APIRouter() @router.put("/items/{item_id}") def replace_item(item_id: str, item: Item): return {"message": "Item replaced", "id": item_id} app.include_router(router) ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params.md
```Python hl_lines="6-7" {!../../docs_src/path_params/tutorial001.py!} ``` ๊ฒฝ๋ก ๋งค๊ฐ๋ณ์ `item_id`์ ๊ฐ์ ํจ์์ `item_id` ์ธ์๋ก ์ ๋ฌ๋ฉ๋๋ค. ๊ทธ๋์ ์ด ์์ ๋ฅผ ์คํํ๊ณ <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>๋ก ์ด๋ํ๋ฉด, ๋ค์ ์๋ต์ ๋ณผ ์ ์์ต๋๋ค: ```JSON {"item_id":"foo"} ``` ## ํ์ ์ด ์๋ ๋งค๊ฐ๋ณ์ ํ์ด์ฌ ํ์ค ํ์ ์ด๋ ธํ ์ด์ ์ ์ฌ์ฉํ์ฌ ํจ์์ ์๋ ๊ฒฝ๋ก ๋งค๊ฐ๋ณ์์ ํ์ ์ ์ ์ธํ ์ ์์ต๋๋ค:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.8K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006c_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 274 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006b_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 300 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial005_an_py39.py
from typing import Annotated from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items(q: Annotated[str, Query(min_length=3)] = "fixedquery"): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 309 bytes - Viewed (0)