- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 510 for tutorial002_an_py310 (0.19 seconds)
-
docs/zh-hant/docs/tutorial/sql-databases.md
我們可以像先前一樣「讀取」多個 `Hero`。同樣地,我們使用 `response_model=list[HeroPublic]` 來確保資料被正確驗證與序列化。 {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[65:72] hl[65] *} ### 使用 `HeroPublic` 讀取單一 Hero { #read-one-hero-with-heropublic } 我們可以「讀取」單一 hero: {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[75:80] hl[77] *} ### 使用 `HeroUpdate` 更新 Hero { #update-a-hero-with-heroupdate }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 14.8K bytes - Click Count (0) -
docs/ja/docs/tutorial/security/get-current-user.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 5.7K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
{* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *} Pay attention to the `__init__` method used to create the instance of the class: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *} ...it has the same parameters as our previous `common_parameters`: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 6.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/sql-databases.md
我们可以像之前一样**读取** `Hero`,同样,使用 `response_model=list[HeroPublic]` 确保正确地验证和序列化数据。 {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[65:72] hl[65] *} ### 使用 `HeroPublic` 读取单个 Hero { #read-one-hero-with-heropublic } 我们可以**读取**单个 hero: {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[75:80] hl[77] *} ### 使用 `HeroUpdate` 更新单个 Hero { #update-a-hero-with-heroupdate }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 15.4K bytes - Click Count (0) -
docs/ja/docs/tutorial/sql-databases.md
前と同様に `Hero` を取得できます。再び `response_model=list[HeroPublic]` を使って、データが正しくバリデート・シリアライズされることを保証します。 {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[65:72] hl[65] *} ### `HeroPublic` で単一の Hero を取得 { #read-one-hero-with-heropublic } 単一のヒーローを取得します: {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[75:80] hl[77] *} ### `HeroUpdate` で Hero を更新 { #update-a-hero-with-heroupdate }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 18K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/classes-as-dependencies.md
接著,我們可以把上面的相依項(dependable)`common_parameters` 改成類別 `CommonQueryParams`: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *} 注意用來建立該類別實例的 `__init__` 方法: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *} ...它的參數與我們之前的 `common_parameters` 相同: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *} **FastAPI** 會用這些參數來「解析」該相依性。 兩種情況下都會有: - 一個可選的查詢參數 `q`,型別為 `str`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 6.7K bytes - Click Count (0) -
docs/ko/docs/how-to/custom-request-and-route.md
같은 접근 방식을 사용해 예외 핸들러에서 요청 바디에 접근할 수도 있습니다. 필요한 것은 `try`/`except` 블록 안에서 요청을 처리하는 것뿐입니다: {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[14,16] *} 예외가 발생하더라도 `Request` 인스턴스는 여전히 스코프 안에 남아 있으므로, 오류를 처리할 때 요청 바디를 읽고 활용할 수 있습니다: {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *} ## 라우터에서의 커스텀 `APIRoute` 클래스 { #custom-apiroute-class-in-a-router }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 5.2K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md
{* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *} 클래스의 인스턴스를 만들 때 사용하는 `__init__` 메서드에 주목하세요: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *} ...이전의 `common_parameters`와 동일한 매개변수를 가지고 있습니다: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *} 이 매개변수들이 **FastAPI**가 의존성을 "해결"하는 데 사용할 것들입니다. 두 경우 모두 다음을 갖게 됩니다:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 8K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md
所以,我们可以将上面的依赖项 "可依赖对象" `common_parameters` 更改为类 `CommonQueryParams`: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *} 注意用于创建类实例的 `__init__` 方法: {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *} ...它与我们以前的 `common_parameters` 具有相同的参数: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8] *} 这些参数就是 **FastAPI** 用来 "处理" 依赖项的。 在两个例子下,都有: * 一个可选的 `q` 查询参数,是 `str` 类型。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 6.8K bytes - Click Count (0) -
docs/en/docs/how-to/custom-request-and-route.md
{* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[14,16] *} If an exception occurs, the`Request` instance will still be in scope, so we can read and make use of the request body when handling the error: {* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *} ## Custom `APIRoute` class in a router { #custom-apiroute-class-in-a-router }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.4K bytes - Click Count (0)