Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 199 for tutorial003 (0.43 sec)

  1. docs/ko/docs/python-types.md

    ## 더 큰 동기부여
    
    아래 함수를 보면, 이미 타입 힌트가 적용되어 있는 걸 볼 수 있습니다:
    
    {* ../../docs_src/python_types/tutorial003.py hl[1] *}
    
    
    편집기가 변수의 타입을 알고 있기 때문에, 자동완성 뿐 아니라 에러도 확인할 수 있습니다:
    
    <img src="/img/python-types/image04.png">
    
    이제 고쳐야하는 걸 알기 때문에, `age`를 `str(age)`과 같이 문자열로 바꾸게 됩니다:
    
    {* ../../docs_src/python_types/tutorial004.py hl[2] *}
    
    
    ## 타입 선언
    
    방금 함수의 매개변수로써 타입 힌트를 선언하는 주요 장소를 보았습니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/query-params-str-validations.md

    ## バリデーションをさらに追加する
    
    パラメータ`min_length`も追加することができます:
    
    {* ../../docs_src/query_params_str_validations/tutorial003.py hl[10] *}
    
    ## 正規表現の追加
    
    パラメータが一致するべき<abbr title="正規表現とは、文字列の検索パターンを定義する文字列です。">正規表現</abbr>を定義することができます:
    
    {* ../../docs_src/query_params_str_validations/tutorial004.py hl[11] *}
    
    この特定の正規表現は受け取ったパラメータの値をチェックします:
    
    * `^`: は、これ以降の文字で始まり、これより以前には文字はありません。
    * `fixedquery`: は、正確な`fixedquery`を持っています.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/first-steps.md

    * **함수**: 는 "데코레이터" 아래에 있는 함수입니다 (`@app.get("/")` 아래).
    
    {* ../../docs_src/first_steps/tutorial001.py hl[7] *}
    
    이것은 파이썬 함수입니다.
    
    URL "`/`"에 대한 `GET` 작동을 사용하는 요청을 받을 때마다 **FastAPI**에 의해 호출됩니다.
    
    위의 예시에서 이 함수는 `async`(비동기) 함수입니다.
    
    ---
    
    `async def`을 이용하는 대신 일반 함수로 정의할 수 있습니다:
    
    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note | 참고
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. docs/zh/docs/python-types.md

    ## 更多动机
    
    下面是一个已经有类型提示的函数:
    
    {* ../../docs_src/python_types/tutorial003.py hl[1] *}
    
    
    因为编辑器已经知道了这些变量的类型,所以不仅能对代码进行补全,还能检查其中的错误:
    
    <img src="https://fastapi.tiangolo.com/img/python-types/image04.png">
    
    现在你知道了必须先修复这个问题,通过 `str(age)` 把 `age` 转换成字符串:
    
    {* ../../docs_src/python_types/tutorial004.py hl[2] *}
    
    
    ## 声明类型
    
    你刚刚看到的就是声明类型提示的主要场景。用于函数的参数。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Aug 18 06:34:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md

    그래서, 우리는 위 예제에서의 `common_paramenters` 의존성을 클래스 `CommonQueryParams`로 바꿀 수 있습니다.
    
    {* ../../docs_src/dependencies/tutorial002.py hl[11:15] *}
    
    클래스의 인스턴스를 생성하는 데 사용되는 `__init__` 메서드에 주목하기 바랍니다:
    
    {* ../../docs_src/dependencies/tutorial002.py hl[12] *}
    
    ...이전 `common_parameters`와 동일한 매개변수를 가집니다:
    
    {* ../../docs_src/dependencies/tutorial001.py hl[9] *}
    
    이 매개변수들은 **FastAPI**가 의존성을 "해결"하기 위해 사용할 것입니다
    
    함수와 클래스 두 가지 방식 모두, 아래 요소를 갖습니다:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note
    
    Si vous ne connaissez pas la différence, allez voir la section [Concurrence : *"Vous êtes pressés ?"*](../async.md#vous-etes-presses){.internal-link target=_blank}.
    
    ///
    
    ### Étape 5 : retourner le contenu
    
    {* ../../docs_src/first_steps/tutorial001.py hl[8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/path-params-numeric-validations.md

    {* ../../docs_src/path_params_numeric_validations/tutorial003.py hl[7] *}
    
    ### Краще з `Annotated`
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 16:27:21 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005.py hl[16] *}
    
    ### ドキュメントの確認
    
    *パスパラメータ*の利用可能な値が事前に定義されているので、対話的なドキュメントで適切に表示できます:
    
    <img src="/img/tutorial/path-params/image03.png">
    
    ### Python*列挙型*の利用
    
    *パスパラメータ*の値は*列挙型メンバ*となります。
    
    #### *列挙型メンバ*の比較
    
    これは、作成した列挙型 `ModelName` の*列挙型メンバ*と比較できます:
    
    {* ../../docs_src/path_params/tutorial005.py hl[17] *}
    
    #### *列挙値*の取得
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. docs/zh-hant/docs/tutorial/first-steps.md

    * **operation**: 是 `get`.
    * **function**: 是裝飾器下面的函式(在 `@app.get("/")` 下面)。
    
    {* ../../docs_src/first_steps/tutorial001.py h1[7] *}
    
    這就是一個 Python 函式。
    
    它將會在 **FastAPI** 收到一個請求時被呼叫,使用 `GET` 操作。
    
    在這種情況下,它是一個 `async` 函式。
    
    ---
    
    你可以將它定義為一個正常的函式,而不是 `async def`:
    
    {* ../../docs_src/first_steps/tutorial003.py h1[7] *}
    
    /// note
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  10. docs/tr/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note | Not
    
    Eğer farkı bilmiyorsanız, [Async: *"Aceleniz mi var?"*](../async.md#in-a-hurry){.internal-link target=_blank} sayfasını kontrol edebilirsiniz.
    
    ///
    
    ### Adım 5: İçeriği Geri Döndürün
    
    {* ../../docs_src/first_steps/tutorial001.py hl[8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top