Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 152 for tutorial009_py310 (0.08 seconds)

  1. docs/en/docs/advanced/custom-response.md

    File responses will include appropriate `Content-Length`, `Last-Modified` and `ETag` headers.
    
    {* ../../docs_src/custom_response/tutorial009_py310.py hl[2,10] *}
    
    You can also use the `response_class` parameter:
    
    {* ../../docs_src/custom_response/tutorial009b_py310.py hl[2,8,10] *}
    
    In this case, you can return the file path directly from your *path operation* function.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  2. pyproject.toml

    "docs_src/custom_request_and_route/tutorial002_py310.py" = ["B904"]
    "docs_src/custom_request_and_route/tutorial002_py39.py" = ["B904"]
    "docs_src/custom_response/tutorial007_py310.py" = ["B007"]
    "docs_src/custom_response/tutorial007_py39.py" = ["B007"]
    "docs_src/dataclasses/tutorial003_py39.py" = ["I001"]
    "docs_src/dependencies/tutorial007_py310.py" = ["F821"]
    "docs_src/dependencies/tutorial007_py39.py" = ["F821"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  3. docs/en/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Because the editor knows the types of the variables, you don't only get completion, you also get error checks:
    
    <img src="/img/python-types/image04.png">
    
    Now you know that you have to fix it, convert `age` to a string with `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    ## Declaring types { #declaring-types }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/python-types.md

    ///
    
    ## 動機 { #motivation }
    
    先從一個簡單的例子開始:
    
    {* ../../docs_src/python_types/tutorial001_py310.py *}
    
    執行這個程式會輸出:
    
    ```
    John Doe
    ```
    
    這個函式會做以下事情:
    
    * 接收 `first_name` 與 `last_name`。
    * 用 `title()` 把每個字的第一個字母轉成大寫。
    * 用一個空白把它們<dfn title="把它們合在一起,成為一個。將其中一個的內容接在另一個後面。">串接</dfn>起來。
    
    {* ../../docs_src/python_types/tutorial001_py310.py hl[2] *}
    
    ### 編輯它 { #edit-it }
    
    這是一個非常簡單的程式。
    
    但現在想像你正從零開始寫它。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/custom-response.md

    - `filename` - 若設定,會包含在回應的 `Content-Disposition` 中。
    
    檔案回應會包含適當的 `Content-Length`、`Last-Modified` 與 `ETag` 標頭。
    
    {* ../../docs_src/custom_response/tutorial009_py310.py hl[2,10] *}
    
    你也可以使用 `response_class` 參數:
    
    {* ../../docs_src/custom_response/tutorial009b_py310.py hl[2,8,10] *}
    
    在此情況下,你可以在「路徑操作函式」中直接回傳檔案路徑。
    
    ## 自訂回應類別 { #custom-response-class }
    
    你可以建立自己的自訂回應類別,繼承自 `Response` 並加以使用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  6. docs/zh/docs/python-types.md

    ///
    
    ## 动机 { #motivation }
    
    让我们从一个简单的例子开始:
    
    {* ../../docs_src/python_types/tutorial001_py310.py *}
    
    运行这个程序会输出:
    
    ```
    John Doe
    ```
    
    这个函数做了下面这些事情:
    
    * 接收 `first_name` 和 `last_name`。
    * 通过 `title()` 将每个参数的第一个字母转换为大写。
    * 用一个空格将它们<dfn title="把它们合在一起成为一个,内容一个接在另一个后面。">拼接</dfn>起来。
    
    {* ../../docs_src/python_types/tutorial001_py310.py hl[2] *}
    
    ### 修改它 { #edit-it }
    
    这是一个非常简单的程序。
    
    但现在想象你要从零开始写它。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  7. docs/ja/docs/python-types.md

    簡単な例から始めてみましょう:
    
    {* ../../docs_src/python_types/tutorial001_py310.py *}
    
    このプログラムを呼び出すと、以下が出力されます:
    
    ```
    John Doe
    ```
    
    この関数は以下のようなことを行います:
    
    * `first_name` と `last_name` を取得します。
    * `title()` を用いて、それぞれの最初の文字を大文字に変換します。
    * 真ん中にスペースを入れて<dfn title="1つにまとめます。片方の内容をもう片方の後ろに続けます。">連結</dfn>します。
    
    {* ../../docs_src/python_types/tutorial001_py310.py hl[2] *}
    
    ### 編集 { #edit-it }
    
    これはとても簡単なプログラムです。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  8. docs/uk/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *}
    
    ## Типи множин { #set-types }
    
    Але потім ми подумали, що теги не повинні повторюватися, вони, ймовірно, повинні бути унікальними рядками.
    
    І Python має спеціальний тип даних для множин унікальних елементів — це `set`.
    
    Тому ми можемо оголосити `tags` як множину рядків:
    
    {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  9. docs/ru/docs/tutorial/body-nested-models.md

    Например, мы можем определить модель `Image`:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### Использование подмодели как типа { #use-the-submodel-as-a-type }
    
    Также мы можем использовать эту модель как тип атрибута:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    Это означает, что **FastAPI** будет ожидать тело запроса, аналогичное этому:
    
    ```JSON
    {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  10. docs/ru/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Так как редактор кода знает типы переменных, вы получаете не только автозавершение, но и проверки ошибок:
    
    <img src="/img/python-types/image04.png">
    
    Теперь вы знаете, что нужно исправить — преобразовать `age` в строку с помощью `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    ## Объявление типов { #declaring-types }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 17.7K bytes
    - Click Count (0)
Back to Top