- Sort Score
- Result 10 results
- Languages All
Results 1661 - 1670 of 1,989 for py$ (0.02 sec)
-
docs/ja/docs/tutorial/header-params.md
## `Header`をインポート まず、`Header`をインポートします: ```Python hl_lines="3" {!../../docs_src/header_params/tutorial001.py!} ``` ## `Header`のパラメータの宣言 次に、`Path`や`Query`、`Cookie`と同じ構造を用いてヘッダーのパラメータを宣言します。 最初の値がデフォルト値で、追加の検証パラメータや注釈パラメータをすべて渡すことができます。 ```Python hl_lines="9" {!../../docs_src/header_params/tutorial001.py!} ``` /// note | "技術詳細" `Header`は`Path`や`Query`、`Cookie`の「姉妹」クラスです。また、同じ共通の`Param`クラスを継承しています。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-files.md
{!> ../../docs_src/request_files/tutorial001_02_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="9 17" {!> ../../docs_src/request_files/tutorial001_02.py!} ``` //// ## 带有额外元数据的 `UploadFile` 您也可以将 `File()` 与 `UploadFile` 一起使用,例如,设置额外的元数据: ```Python hl_lines="13" {!../../docs_src/request_files/tutorial001_03.py!} ``` ## 多文件上传 FastAPI 支持同时上传多个文件。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/en/docs/advanced/middleware.md
{* ../../docs_src/advanced_middleware/tutorial001.py hl[2,6] *} ## `TrustedHostMiddleware` Enforces that all incoming requests have a correctly set `Host` header, in order to guard against HTTP Host Header attacks. {* ../../docs_src/advanced_middleware/tutorial002.py hl[2,6:8] *} The following arguments are supported:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:45:50 UTC 2024 - 4K bytes - Viewed (0) -
docs/ko/docs/python-types.md
간단한 예제부터 시작해봅시다: ```Python {!../../docs_src/python_types/tutorial001.py!} ``` 이 프로그램을 실행한 결과값: ``` John Doe ``` 함수는 아래와 같이 실행됩니다: * `first_name`과 `last_name`를 받습니다. * `title()`로 각 첫 문자를 대문자로 변환시킵니다. * 두 단어를 중간에 공백을 두고 <abbr title="두 개를 하나로 차례차례 이어지게 하다">연결</abbr>합니다. ```Python hl_lines="2" {!../../docs_src/python_types/tutorial001.py!} ``` ### 코드 수정 이건 매우 간단한 프로그램입니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.5K bytes - Viewed (0) -
docs/en/docs/contributing.md
The documentation uses <a href="https://www.mkdocs.org/" class="external-link" target="_blank">MkDocs</a>. And there are extra tools/scripts in place to handle translations in `./scripts/docs.py`. /// tip You don't need to see the code in `./scripts/docs.py`, you just use it in the command line. /// All the documentation is in Markdown format in the directory `./docs/en/`. Many of the tutorials have blocks of code.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Aug 25 02:44:06 UTC 2024 - 12.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
```Python hl_lines="26-27 30" {!> ../../docs_src/dependency_testing/tutorial001_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="28-29 32" {!> ../../docs_src/dependency_testing/tutorial001_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="29-30 33" {!> ../../docs_src/dependency_testing/tutorial001_an.py!} ``` //// //// tab | Python 3.10+ non-Annotated /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.9K bytes - Viewed (0) -
docs/zh/docs/python-types.md
## 动机 让我们从一个简单的例子开始: ```Python {!../../docs_src/python_types/tutorial001.py!} ``` 运行这段程序将输出: ``` John Doe ``` 这个函数做了下面这些事情: * 接收 `first_name` 和 `last_name` 参数。 * 通过 `title()` 将每个参数的第一个字母转换为大写形式。 * 中间用一个空格来<abbr title="将它们按顺序放置组合成一个整体。">拼接</abbr>它们。 ```Python hl_lines="2" {!../../docs_src/python_types/tutorial001.py!} ``` ### 修改示例 这是一个非常简单的程序。 现在假设你将从头开始编写这段程序。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/encoder.md
//// tab | Python 3.10+ ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="5 22" {!> ../../docs_src/encoder/tutorial001.py!} ``` //// Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/zh/docs/advanced/additional-responses.md
**FastAPI**将采用该模型,生成其`JSON Schema`并将其包含在`OpenAPI`中的正确位置。 例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写: ```Python hl_lines="18 22" {!../../docs_src/additional_responses/tutorial001.py!} ``` /// note 请记住,您必须直接返回 `JSONResponse` 。 /// /// info `model` 密钥不是OpenAPI的一部分。 **FastAPI**将从那里获取`Pydantic`模型,生成` JSON Schema` ,并将其放在正确的位置。 - 正确的位置是:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.2K bytes - Viewed (0)