- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 152 for tutorial007_py310 (0.14 seconds)
-
docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md
응답을 생성하기 전에는 `yield`문을 포함하여 그 이전의 코드만이 실행됩니다: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} yield된 값은 *경로 처리* 및 다른 의존성들에 주입되는 값 입니다: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} `yield`문 다음의 코드는 응답을 생성한 후 실행됩니다: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip `async` 함수와 일반 함수 모두 사용할 수 있습니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 14.3K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
{* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} The yielded value is what is injected into *path operations* and other dependencies: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} The code following the `yield` statement is executed after the response: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip You can use `async` or regular functions.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 12.6K bytes - Click Count (0) -
pyproject.toml
"docs_src/custom_request_and_route/tutorial002_py310.py" = ["B904"] "docs_src/custom_request_and_route/tutorial002_py39.py" = ["B904"] "docs_src/custom_response/tutorial007_py310.py" = ["B007"] "docs_src/custom_response/tutorial007_py39.py" = ["B007"] "docs_src/dataclasses/tutorial003_py39.py" = ["I001"] "docs_src/dependencies/tutorial007_py310.py" = ["F821"] "docs_src/dependencies/tutorial007_py39.py" = ["F821"]
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 12:36:49 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md
例如,你可以用它建立一個資料庫 session,並在完成後關閉。 只有 `yield` 之前(含 `yield` 本身)的程式碼會在產生回應之前執行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} 由 `yield` 產生的值會被注入到路徑操作(path operation)與其他相依中: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} 位於 `yield` 之後的程式碼會在回應之後執行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip 你可以使用 `async` 或一般函式。 **FastAPI** 都會正確處理,和一般相依相同。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 11.9K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
例如,你可以用这种方式创建一个数据库会话,并在完成后将其关闭。 在创建响应之前,只会执行 `yield` 语句及其之前的代码: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} `yield` 产生的值会注入到 *路径操作* 和其他依赖项中: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} `yield` 语句后面的代码会在响应之后执行: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip | 提示 你可以使用 `async` 或普通函数。 **FastAPI** 会像处理普通依赖一样对它们进行正确处理。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 12.1K bytes - Click Count (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
レスポンスを作成する前に、`yield`文より前のコード(および`yield`文を含む)が実行されます: {* ../../docs_src/dependencies/tutorial007_py310.py hl[2:4] *} 生成された値は、*path operations*や他の依存関係に注入されるものです: {* ../../docs_src/dependencies/tutorial007_py310.py hl[4] *} `yield`文に続くコードは、レスポンスの後に実行されます: {* ../../docs_src/dependencies/tutorial007_py310.py hl[5:6] *} /// tip | 豆知識 `async`や通常の関数を使用することができます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 15.4K bytes - Click Count (0) -
docs/en/docs/advanced/custom-response.md
{* ../../docs_src/response_directly/tutorial002_py310.py hl[1,18] *} ### `HTMLResponse` { #htmlresponse } Takes some text or bytes and returns an HTML response, as you read above. ### `PlainTextResponse` { #plaintextresponse } Takes some text or bytes and returns a plain text response. {* ../../docs_src/custom_response/tutorial005_py310.py hl[2,7,9] *} ### `JSONResponse` { #jsonresponse }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/en/docs/python-types.md
{* ../../docs_src/python_types/tutorial003_py310.py hl[1] *} Because the editor knows the types of the variables, you don't only get completion, you also get error checks: <img src="/img/python-types/image04.png"> Now you know that you have to fix it, convert `age` to a string with `str(age)`: {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *} ## Declaring types { #declaring-types }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/zh-hant/docs/python-types.md
你也可以用相同方式來宣告 `tuple` 與 `set`: {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *} 這代表: * 變數 `items_t` 是一個有 3 個項目的 `tuple`,分別是 `int`、`int` 和 `str`。 * 變數 `items_s` 是一個 `set`,而其中每個項目都是 `bytes` 型別。 #### Dict { #dict } 定義 `dict` 時,你需要傳入 2 個以逗號分隔的型別參數。 第一個型別參數是 `dict` 的鍵(key)。 第二個型別參數是 `dict` 的值(value): {* ../../docs_src/python_types/tutorial008_py310.py hl[1] *} 這代表: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/zh-hant/docs/advanced/custom-response.md
{* ../../docs_src/response_directly/tutorial002_py310.py hl[1,18] *} ### `HTMLResponse` { #htmlresponse } 接收文字或位元組並回傳 HTML 回應,如上所述。 ### `PlainTextResponse` { #plaintextresponse } 接收文字或位元組並回傳純文字回應。 {* ../../docs_src/custom_response/tutorial005_py310.py hl[2,7,9] *} ### `JSONResponse` { #jsonresponse } 接收資料並回傳 `application/json` 編碼的回應。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)