- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 979 for tutorial006_py310 (0.14 seconds)
-
docs/zh-hant/docs/python-types.md
/// ## 動機 { #motivation } 先從一個簡單的例子開始: {* ../../docs_src/python_types/tutorial001_py310.py *} 執行這個程式會輸出: ``` John Doe ``` 這個函式會做以下事情: * 接收 `first_name` 與 `last_name`。 * 用 `title()` 把每個字的第一個字母轉成大寫。 * 用一個空白把它們<dfn title="把它們合在一起,成為一個。將其中一個的內容接在另一個後面。">串接</dfn>起來。 {* ../../docs_src/python_types/tutorial001_py310.py hl[2] *} ### 編輯它 { #edit-it } 這是一個非常簡單的程式。 但現在想像你正從零開始寫它。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/body-nested-models.md
{* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *} 文字列は有効なURLであることが確認され、そのようにJSON Schema / OpenAPIで文書化されます。 ## サブモデルのリストを持つ属性 { #attributes-with-lists-of-submodels } Pydanticモデルを`list`や`set`などのサブタイプとして使用することもできます: {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *} これは、次のようなJSONボディを期待します(変換、検証、ドキュメントなど): ```JSON hl_lines="11"Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 8.6K bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
We can instead create an input model with the plaintext password and an output model without it: {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *} Here, even though our *path operation function* is returning the same input user that contains the password: {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *} ...we declared the `response_model` to be our model `UserOut`, that doesn't include the password:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/custom-response.md
回傳一個 HTTP 重新導向。預設使用 307 狀態碼(Temporary Redirect)。 你可以直接回傳 `RedirectResponse`: {* ../../docs_src/custom_response/tutorial006_py310.py hl[2,9] *} --- 或者你可以在 `response_class` 參數中使用它: {* ../../docs_src/custom_response/tutorial006b_py310.py hl[2,7,9] *} 若這麼做,你就可以在「路徑操作函式」中直接回傳 URL。 在此情況下,所使用的 `status_code` 會是 `RedirectResponse` 的預設值 `307`。 ---Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/zh/docs/python-types.md
/// ## 动机 { #motivation } 让我们从一个简单的例子开始: {* ../../docs_src/python_types/tutorial001_py310.py *} 运行这个程序会输出: ``` John Doe ``` 这个函数做了下面这些事情: * 接收 `first_name` 和 `last_name`。 * 通过 `title()` 将每个参数的第一个字母转换为大写。 * 用一个空格将它们<dfn title="把它们合在一起成为一个,内容一个接在另一个后面。">拼接</dfn>起来。 {* ../../docs_src/python_types/tutorial001_py310.py hl[2] *} ### 修改它 { #edit-it } 这是一个非常简单的程序。 但现在想象你要从零开始写它。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 10.6K bytes - Click Count (0) -
docs/ja/docs/python-types.md
簡単な例から始めてみましょう: {* ../../docs_src/python_types/tutorial001_py310.py *} このプログラムを呼び出すと、以下が出力されます: ``` John Doe ``` この関数は以下のようなことを行います: * `first_name` と `last_name` を取得します。 * `title()` を用いて、それぞれの最初の文字を大文字に変換します。 * 真ん中にスペースを入れて<dfn title="1つにまとめます。片方の内容をもう片方の後ろに続けます。">連結</dfn>します。 {* ../../docs_src/python_types/tutorial001_py310.py hl[2] *} ### 編集 { #edit-it } これはとても簡単なプログラムです。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 14.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/response-model.md
我們可以改為建立一個包含明文密碼的輸入模型,以及一個不含密碼的輸出模型: {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *} 在這裡,雖然「路徑操作函式」回傳的是同一個包含密碼的輸入使用者: {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *} ...我們把 `response_model` 宣告為不包含密碼的 `UserOut` 模型: {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *} 因此,FastAPI 會負責(透過 Pydantic)過濾掉輸出模型中未宣告的所有資料。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.5K bytes - Click Count (0) -
docs/ru/docs/tutorial/path-operation-configuration.md
{* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *} Он будет использован в интерактивной документации: <img src="/img/tutorial/path-operation-configuration/image02.png"> ## Описание ответа { #response-description } Вы можете указать описание ответа с помощью параметра `response_description`: {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[18] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 6.4K bytes - Click Count (0) -
docs/de/docs/tutorial/path-operation-configuration.md
{* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *} Es wird in der interaktiven Dokumentation verwendet: <img src="/img/tutorial/path-operation-configuration/image02.png"> ## Beschreibung der Response { #response-description } Sie können die Response mit dem Parameter `response_description` beschreiben: {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[18] *} /// info | InfoCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 4.7K bytes - Click Count (0) -
docs/tr/docs/tutorial/path-operation-configuration.md
{* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *} Interactive docs’ta şöyle kullanılacaktır: <img src="/img/tutorial/path-operation-configuration/image02.png"> ## Response description { #response-description } `response_description` parametresi ile response açıklamasını belirtebilirsiniz: {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[18] *} /// info | BilgiCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 4.3K bytes - Click Count (0)