Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 787 for py (0.01 sec)

  1. docs/ko/docs/tutorial/body-multiple-params.md

    ## `Path`, `Query` 및 본문 매개변수 혼합
    
    당연하게 `Path`, `Query` 및 요청 본문 매개변수 선언을 자유롭게 혼합해서 사용할 수 있고, **FastAPI**는 어떤 동작을 할지 압니다.
    
    또한, 기본 값을 `None`으로 설정해 본문 매개변수를 선택사항으로 선언할 수 있습니다.
    
    {* ../../docs_src/body_multiple_params/tutorial001.py hl[19:21] *}
    
    /// note | 참고
    
    이 경우에는 본문으로 부터 가져온 `	item`은 기본값이 `None`이기 때문에, 선택사항이라는 점을 유의해야 합니다.
    
    ///
    
    ## 다중 본문 매개변수
    
    이전 예제에서 보듯이, *경로 작동*은 아래와 같이 `Item` 속성을 가진 JSON 본문을 예상합니다:
    
    ```JSON
    {
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/events.md

    Beginnen wir mit einem Beispiel und sehen es uns dann im Detail an.
    
    Wir erstellen eine asynchrone Funktion `lifespan()` mit `yield` wie folgt:
    
    {* ../../docs_src/events/tutorial003.py hl[16,19] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. docs/vi/docs/fastapi-cli.md

    ```console
    $ <font color="#4E9A06">fastapi</font> dev <u style="text-decoration-style:solid">main.py</u>
    
      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
                 Searching for package file structure from directories with
                 <font color="#3465A4">__init__.py</font> files
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Feb 07 22:09:16 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. docs/zh-hant/docs/environment-variables.md

    然後你可以呼叫這個 Python 程式:
    
    //// tab | Linux, macOS, Windows Bash
    
    <div class="termy">
    
    ```console
    // 這裡我們還沒有設定環境變數
    $ python main.py
    
    // 因為我們沒有設定環境變數,所以我們得到的是預設值
    
    Hello World from Python
    
    // 但是如果我們事先建立過一個環境變數
    $ export MY_NAME="Wade Wilson"
    
    // 然後再次呼叫程式
    $ python main.py
    
    // 現在就可以讀取到環境變數了
    
    Hello Wade Wilson from Python
    ```
    
    </div>
    
    ////
    
    //// tab | Windows PowerShell
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 12:17:55 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/cookie-params.md

    {* ../../docs_src/cookie_params/tutorial001_py310.py hl[1] *}
    
    ## Объявление параметров `Cookie`
    
    Затем объявляйте параметры cookie, используя ту же структуру, что и с `Path` и `Query`.
    
    Первое значение - это значение по умолчанию, вы можете передать все дополнительные параметры проверки или аннотации:
    
    {* ../../docs_src/cookie_params/tutorial001_py310.py hl[7] *}
    
    /// note | Технические детали
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. 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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Jul 26 11:35:42 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial002.py hl[25] *}
    
    ## ユーザーの取得
    
    `get_current_user` は作成した(偽物の)ユーティリティ関数を使って、 `str` としてトークンを受け取り、先ほどのPydanticの `User` モデルを返却します:
    
    {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *}
    
    ## 現在のユーザーの注入
    
    ですので、 `get_current_user` に対して同様に *path operation* の中で `Depends` を利用できます。
    
    {* ../../docs_src/security/tutorial002.py hl[31] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/security/first-steps.md

    ## Cómo se ve
    
    Primero solo usemos el código y veamos cómo funciona, y luego volveremos para entender qué está sucediendo.
    
    ## Crea `main.py`
    
    Copia el ejemplo en un archivo `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## Ejecútalo
    
    /// info | Información
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. 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 Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. docs/uk/docs/python-types.md

    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009.py!}
    ```
    
    ////
    
    //// tab | Python 3.8 і вище - альтернатива
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009b.py!}
    ```
    
    ////
    
    //// tab | Python 3.10 і вище
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial009_py310.py!}
    ```
    
    ////
    
    #### Generic типи
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top