Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1561 - 1570 of 2,058 for py$ (0.02 sec)

  1. docs/de/docs/environment-variables.md

    ```console
    // Hier setzen wir die Umgebungsvariable noch nicht
    $ python main.py
    
    // Da wir die Umgebungsvariable nicht gesetzt haben, erhalten wir den Defaultwert
    
    Hello World from Python
    
    // Aber wenn wir zuerst eine Umgebungsvariable erstellen
    $ export MY_NAME="Wade Wilson"
    
    // Und dann das Programm erneut aufrufen
    $ python main.py
    
    // Jetzt kann es die Umgebungsvariable lesen
    
    Hello Wade Wilson from Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/security/first-steps.md

    ## Как это выглядит { #how-it-looks }
    
    Сначала просто воспользуемся кодом и посмотрим, как он работает, а затем вернемся и разберемся, что происходит.
    
    ## Создание `main.py` { #create-main-py }
    
    Скопируйте пример в файл `main.py`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py *}
    
    ## Запуск { #run-it }
    
    /// info | Дополнительная информация
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. docs/de/docs/deployment/manually.md

    ```console
    $ <font color="#4E9A06">fastapi</font> run <u style="text-decoration-style:solid">main.py</u>
    
      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting production server 🚀
    
                 Searching for package file structure from directories
                 with <font color="#3465A4">__init__.py</font> files
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    ## 模型列表
    
    使用同样的方式也可以声明由对象列表构成的响应。
    
    为此,请使用标准的 Python `typing.List`:
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## 任意 `dict` 构成的响应
    
    任意的 `dict` 都能用于声明响应,只要声明键和值的类型,无需使用 Pydantic 模型。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. .github/workflows/translate.yml

          - name: Export Language Codes
            id: show-langs
            run: |
              echo "langs=$(python ./scripts/translate.py llm-translatable-json)" >> $GITHUB_OUTPUT
              echo "commands=$(python ./scripts/translate.py commands-json)" >> $GITHUB_OUTPUT
            env:
              LANGUAGE: ${{ github.event.inputs.language }}
              COMMAND: ${{ github.event.inputs.command }}
    
      translate:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:48:45 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/handling-errors.md

    但对于某些高级应用场景,还是需要添加自定义响应头:
    
    {* ../../docs_src/handling_errors/tutorial002.py hl[14] *}
    
    ## 安装自定义异常处理器
    
    添加自定义处理器,要使用 [Starlette 的异常工具](https://www.starlette.dev/exceptions/)。
    
    假设要触发的自定义异常叫作 `UnicornException`。
    
    且需要 FastAPI 实现全局处理该异常。
    
    此时,可以用 `@app.exception_handler()` 添加自定义异常控制器:
    
    {* ../../docs_src/handling_errors/tutorial003.py hl[5:7,13:18,24] *}
    
    请求 `/unicorns/yolo` 时,路径操作会触发 `UnicornException`。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/advanced-dependencies.md

    Veja como poderia ser:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py *}
    
    O código de saída, o fechamento automático da `Session` em:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    ...seria executado depois que a resposta terminar de enviar os dados lentos:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/cookie-params.md

    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## `Cookie`-Parameter deklarieren { #declare-cookie-parameters }
    
    Deklarieren Sie dann die Cookie-Parameter mit derselben Struktur wie bei `Path` und `Query`.
    
    Sie können den Defaultwert sowie alle zusätzlichen Validierungen oder Annotierungsparameter definieren:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *}
    
    /// note | Technische Details
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Sep 24 08:10:28 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/cookie-params.md

    ## `Cookie` 임포트
    
    먼저 `Cookie`를 임포트합니다:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## `Cookie` 매개변수 선언
    
    그런 다음, `Path`와 `Query`처럼 동일한 구조를 사용하는 쿠키 매개변수를 선언합니다.
    
    첫 번째 값은 기본값이며, 추가 검증이나 어노테이션 매개변수 모두 전달할 수 있습니다:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *}
    
    /// note | 기술 세부사항
    
    `Cookie`는 `Path` 및 `Query`의 "자매"클래스입니다. 이 역시 동일한 공통 `Param` 클래스를 상속합니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. 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 Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 12:17:55 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top