- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 543 for item_b (0.05 seconds)
-
docs/ru/docs/python-types.md
/// Это означает: «переменная `items` — это `list`, и каждый элемент этого списка — `str`». Таким образом, ваш редактор кода сможет помогать даже при обработке элементов списка: <img src="/img/python-types/image05.png"> Без типов добиться этого почти невозможно. Обратите внимание, что переменная `item` — один из элементов списка `items`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 24.4K bytes - Click Count (0) -
docs/uk/docs/tutorial/handling-errors.md
Якщо клієнт робить запит за шляхом `http://example.com/items/foo` (де `item_id` `"foo"`), він отримає статус-код 200 і JSON відповідь: ```JSON { "item": "The Foo Wrestlers" } ``` Але якщо клієнт робить запит на `http://example.com/items/bar` (де `item_id` має не існуюче значення `"bar"`), то отримає статус-код 404 (помилка "не знайдено") та відповідь: ```JSON { "detail": "Item not found" } ``` /// tip | Порада
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 13.9K bytes - Click Count (0) -
docs/uk/docs/python-types.md
//// //// tab | Python 3.9 і вище ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial007_py39.py!} ``` //// Це означає: * Змінна `items_t` це `tuple` з 3 елементами, `int`, ще `int`, та `str`. * Змінна `items_s` це `set`, і кожен його елемент типу `bytes`. #### Dict (словник) Щоб оголосити `dict`, вам потрібно передати 2 параметри типу, розділені комами.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 19.4K bytes - Click Count (0) -
docs/zh/docs/python-types.md
由于列表是带有"子类型"的类型,所以我们把子类型放在方括号中: {* ../../docs_src/python_types/tutorial006.py hl[4] *} 这表示:"变量 `items` 是一个 `list`,并且这个列表里的每一个元素都是 `str`"。 这样,即使在处理列表中的元素时,你的编辑器也可以提供支持。 没有类型,几乎是不可能实现下面这样: <img src="https://fastapi.tiangolo.com/img/python-types/image05.png"> 注意,变量 `item` 是列表 `items` 中的元素之一。 而且,编辑器仍然知道它是一个 `str`,并为此提供了支持。 #### 元组和集合 声明 `tuple` 和 `set` 的方法也是一样的:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Aug 18 06:34:40 GMT 2025 - 8.6K bytes - Click Count (0) -
tests/test_tutorial/test_events/test_tutorial001.py
}, "summary": "Read Items", "operationId": "read_items_items__item_id__get", "parameters": [ { "required": True, "schema": {"title": "Item Id", "type": "string"}, "name": "item_id", "in": "path",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.6K bytes - Click Count (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial001.py
"info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "put": { "summary": "Update Item", "operationId": "update_item_items__item_id__put", "parameters": [ { "name": "item_id", "in": "path", "required": True,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 4.8K bytes - Click Count (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial002.py
"info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "put": { "summary": "Update Item", "operationId": "update_item_items__item_id__put", "parameters": [ { "name": "item_id", "in": "path", "required": True,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.9K bytes - Click Count (0) -
tests/test_tutorial/test_handling_errors/test_tutorial002.py
assert response.json() == {"detail": "Item not found"} def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items-header/{item_id}": { "get": { "responses": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.3K bytes - Click Count (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial004.py
"paths": { "/items/{item_id}": { "put": { "summary": "Update Item", "operationId": "update_item_items__item_id__put", "parameters": [ { "required": True, "schema": {"title": "Item Id", "type": "integer"},
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 5.4K bytes - Click Count (0) -
docs/fr/docs/tutorial/path-params-numeric-validations.md
/// ## Déclarer des métadonnées Vous pouvez déclarer les mêmes paramètres que pour `Query`. Par exemple, pour déclarer une valeur de métadonnée `title` pour le paramètre de chemin `item_id`, vous pouvez écrire : {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *} /// noteCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 16:39:20 GMT 2024 - 6.9K bytes - Click Count (0)