- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 890 for docs_src (0.13 sec)
-
docs/zh/docs/advanced/advanced-dependencies.md
这里说的不是类本身(类本就是可调用项),而是类实例。 为此,需要声明 `__call__` 方法: ```Python hl_lines="10" {!../../docs_src/dependencies/tutorial011.py!} ``` 本例中,**FastAPI** 使用 `__call__` 检查附加参数及子依赖项,稍后,还要调用它向*路径操作函数*传递值。 ## 参数化实例 接下来,使用 `__init__` 声明用于**参数化**依赖项的实例参数: ```Python hl_lines="7" {!../../docs_src/dependencies/tutorial011.py!} ``` 本例中,**FastAPI** 不使用 `__init__`,我们要直接在代码中使用。 ## 创建实例 使用以下代码创建类实例:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
//// tab | Python 3.10+ ```Python hl_lines="16 21" {!> ../../docs_src/response_model/tutorial001_01_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="18 23" {!> ../../docs_src/response_model/tutorial001_01_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="18 23" {!> ../../docs_src/response_model/tutorial001_01.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 30.4K bytes - Viewed (0) -
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py310.py
from ...utils import needs_py310 @needs_py310 def test_override_in_items_run(): from docs_src.dependency_testing.tutorial001_an_py310 import test_override_in_items test_override_in_items() @needs_py310 def test_override_in_items_with_q_run(): from docs_src.dependency_testing.tutorial001_an_py310 import ( test_override_in_items_with_q, ) test_override_in_items_with_q() @needs_py310
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2K bytes - Viewed (0) -
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py39.py
from ...utils import needs_py39 @needs_py39 def test_override_in_items_run(): from docs_src.dependency_testing.tutorial001_an_py39 import test_override_in_items test_override_in_items() @needs_py39 def test_override_in_items_with_q_run(): from docs_src.dependency_testing.tutorial001_an_py39 import ( test_override_in_items_with_q, ) test_override_in_items_with_q() @needs_py39
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2K bytes - Viewed (0) -
docs/zh/docs/tutorial/background-tasks.md
//// tab | Python 3.10+ ```Python hl_lines="13 15 22 25" {!> ../../docs_src/background_tasks/tutorial002_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="13 15 22 25" {!> ../../docs_src/background_tasks/tutorial002_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="14 16 23 26" {!> ../../docs_src/background_tasks/tutorial002_an.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0) -
docs/ko/docs/tutorial/response-model.md
```Python hl_lines="9 11 16" {!../../docs_src/response_model/tutorial003.py!} ``` 여기서 *경로 작동 함수*가 비밀번호를 포함하는 동일한 입력 사용자를 반환할지라도: ```Python hl_lines="24" {!../../docs_src/response_model/tutorial003.py!} ``` ...`response_model`을 `UserOut` 모델로 선언했기 때문에 비밀번호를 포함하지 않습니다: ```Python hl_lines="22" {!../../docs_src/response_model/tutorial003.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.1K bytes - Viewed (0) -
docs/de/docs/tutorial/path-params.md
```Python hl_lines="6 11" {!../../docs_src/path_params/tutorial003.py!} ``` Ansonsten würde der Pfad für `/users/{user_id}` auch `/users/me` auswerten, und annehmen, dass ein Parameter `user_id` mit dem Wert `"me"` übergeben wurde. Sie können eine Pfadoperation auch nicht erneut definieren: ```Python hl_lines="6 11" {!../../docs_src/path_params/tutorial003b.py!} ```
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/de/docs/tutorial/body-fields.md
Importieren Sie es zuerst: //// tab | Python 3.10+ ```Python hl_lines="4" {!> ../../docs_src/body_fields/tutorial001_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="4" {!> ../../docs_src/body_fields/tutorial001_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="4" {!> ../../docs_src/body_fields/tutorial001_an.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-operation-configuration.md
```Python hl_lines="17 22 27" {!../../docs_src/path_operation_configuration/tutorial002.py!} ``` OpenAPI 概图会自动添加标签,供 API 文档接口使用: <img src="/img/tutorial/path-operation-configuration/image01.png"> ## `summary` 和 `description` 参数 路径装饰器还支持 `summary` 和 `description` 这两个参数: ```Python hl_lines="20-21" {!../../docs_src/path_operation_configuration/tutorial003.py!} ``` ## 文档字符串(`docstring`)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params-str-validations.md
### `Query`のインポート そのために、まずは`fastapi`から`Query`をインポートします: ```Python hl_lines="3" {!../../docs_src/query_params_str_validations/tutorial002.py!} ``` ## デフォルト値として`Query`を使用 パラメータのデフォルト値として使用し、パラメータ`max_length`を50に設定します: ```Python hl_lines="9" {!../../docs_src/query_params_str_validations/tutorial002.py!} ``` デフォルト値`None`を`Query(default=None)`に置き換える必要があるので、`Query`の最初の引数はデフォルト値を定義するのと同じです。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.5K bytes - Viewed (0)