Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 979 for tutorial006_py310 (0.19 seconds)

  1. scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc.md

    ## Простые включения кода { #simple-code-includes }
    
    {* ../../docs_src/python_types/tutorial001_py310.py *}
    
    {* ../../docs_src/python_types/tutorial002_py310.py *}
    
    
    ## Включения кода с подсветкой { #code-includes-with-highlighting }
    
    {* ../../docs_src/python_types/tutorial002_py310.py hl[1] *}
    
    {* ../../docs_src/python_types/tutorial006_py310.py hl[10] *}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/query-params.md

    {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *}
    
    この場合、関数パラメータ `q` はオプショナルとなり、デフォルトでは `None` になります。
    
    /// check | 確認
    
    パスパラメータ `item_id` はパスパラメータであり、`q` はそれとは違ってクエリパラメータであると判別できるほど**FastAPI** が賢いということにも注意してください。
    
    ///
    
    ## クエリパラメータの型変換 { #query-parameter-type-conversion }
    
    `bool` 型も宣言でき、変換されます:
    
    {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *}
    
    この場合、以下にアクセスすると:
    
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  3. docs/ko/docs/advanced/custom-response.md

    HTTP 리디렉션 응답을 반환합니다. 기본적으로 상태 코드는 307(임시 리디렉션)으로 설정됩니다.
    
    `RedirectResponse`를 직접 반환할 수 있습니다:
    
    {* ../../docs_src/custom_response/tutorial006_py310.py hl[2,9] *}
    
    ---
    
    또는 `response_class` 매개변수에서 사용할 수도 있습니다:
    
    
    {* ../../docs_src/custom_response/tutorial006b_py310.py hl[2,7,9] *}
    
    이 경우, *경로 처리* 함수에서 URL을 직접 반환할 수 있습니다.
    
    이 경우, 사용되는 `status_code`는 `RedirectResponse`의 기본값인 `307`입니다.
    
    ---
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  4. docs/es/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Porque el editor conoce los tipos de las variables, no solo obtienes autocompletado, también obtienes chequeo de errores:
    
    <img src="/img/python-types/image04.png">
    
    Ahora sabes que debes corregirlo, convertir `age` a un string con `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (1)
  5. docs/pt/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Como o editor conhece os tipos das variáveis, você não obtém apenas o preenchimento automático, mas também as verificações de erro:
    
    <img src="/img/python-types/image04.png">
    
    Agora você sabe que precisa corrigi-la, convertendo `age` em uma string com `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  6. docs/zh/docs/advanced/custom-response.md

    返回 HTTP 重定向。默认情况下使用 307 状态码(临时重定向)。
    
    你可以直接返回一个 `RedirectResponse`:
    
    {* ../../docs_src/custom_response/tutorial006_py310.py hl[2,9] *}
    
    ---
    
    或者你可以把它用于 `response_class` 参数:
    
    {* ../../docs_src/custom_response/tutorial006b_py310.py hl[2,7,9] *}
    
    如果你这么做,那么你可以在 *路径操作* 函数中直接返回 URL。
    
    在这种情况下,将使用 `RedirectResponse` 的默认 `status_code`,即 `307`。
    
    ---
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  7. docs/pt/docs/advanced/custom-response.md

    Você pode retornar uma `RedirectResponse` diretamente:
    
    {* ../../docs_src/custom_response/tutorial006_py310.py hl[2,9] *}
    
    ---
    
    Ou você pode utilizá-la no parâmetro `response_class`:
    
    {* ../../docs_src/custom_response/tutorial006b_py310.py hl[2,7,9] *}
    
    Se você fizer isso, então você pode retornar a URL diretamente da sua *função de operação de rota*.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 12K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/tutorial/handling-errors.md

    但若你在進階情境中需要,可以這樣加入自訂標頭:
    
    {* ../../docs_src/handling_errors/tutorial002_py310.py hl[14] *}
    
    ## 安裝自訂例外處理器 { #install-custom-exception-handlers }
    
    你可以使用 [Starlette 的相同例外工具](https://www.starlette.dev/exceptions/) 來加入自訂例外處理器。
    
    假設你有一個自訂例外 `UnicornException`,你(或你使用的函式庫)可能會 `raise` 它。
    
    而你想用 FastAPI 全域處理這個例外。
    
    你可以使用 `@app.exception_handler()` 加入自訂例外處理器:
    
    {* ../../docs_src/handling_errors/tutorial003_py310.py hl[5:7,13:18,24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/handling-errors.md

    ### **FastAPI**의 예외 핸들러 재사용하기 { #reuse-fastapis-exception-handlers }
    
    예외를 사용하면서 **FastAPI**의 동일한 기본 예외 핸들러도 함께 사용하고 싶다면, `fastapi.exception_handlers`에서 기본 예외 핸들러를 가져와 재사용할 수 있습니다:
    
    {* ../../docs_src/handling_errors/tutorial006_py310.py hl[2:5,15,21] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  10. docs/fr/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Comme l'éditeur connaît les types des variables, vous n'obtenez pas seulement l'autocomplétion, vous obtenez aussi des vérifications d'erreurs :
    
    <img src="/img/python-types/image04.png">
    
    Vous savez maintenant qu'il faut corriger, convertir `age` en chaîne avec `str(age)` :
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.7K bytes
    - Click Count (0)
Back to Top