Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 721 - 730 of 1,683 for py$ (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/en/docs/tutorial/metadata.md

    You can set them as follows:
    
    {* ../../docs_src/metadata/tutorial001_py310.py hl[3:16, 19:32] *}
    
    /// tip
    
    You can write Markdown in the `description` field and it will be rendered in the output.
    
    ///
    
    With this configuration, the automatic API docs would look like:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/path-params-numeric-validations.md

    そのため、以下のように関数を宣言することができます:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_py310.py hl[7] *}
    
    ただし、`Annotated`を使う場合はこの問題は起きないことを覚えておいてください。`Query()`や`Path()`に関数パラメータのデフォルト値を使わないためです。
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py310.py *}
    
    ## 必要に応じてパラメータを並び替えるトリック { #order-the-parameters-as-you-need-tricks }
    
    /// tip | 豆知識
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/bigger-applications.md

    假设你的文件结构如下:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   ├── dependencies.py
    │   └── routers
    │   │   ├── __init__.py
    │   │   ├── items.py
    │   │   └── users.py
    │   └── internal
    │       ├── __init__.py
    │       └── admin.py
    ```
    
    /// tip | 提示
    
    上面有几个 `__init__.py` 文件:每个目录或子目录中都有一个。
    
    这就是能将代码从一个文件导入到另一个文件的原因。
    
    例如,在 `app/main.py` 中,你可以有如下一行:
    
    ```
    from app.routers import items
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 19.5K bytes
    - Click Count (0)
  4. docs/ko/docs/advanced/path-operation-advanced-configuration.md

    ### *경로 처리 함수* 이름을 operationId로 사용하기 { #using-the-path-operation-function-name-as-the-operationid }
    
    API의 함수 이름을 `operationId`로 사용하고 싶다면, 모든 API를 순회하면서 `APIRoute.name`을 사용해 각 *경로 처리*의 `operation_id`를 덮어쓸 수 있습니다.
    
    모든 *경로 처리*를 추가한 뒤에 수행해야 합니다.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *}
    
    /// tip | 팁
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  5. docs/ru/docs/tutorial/first-steps.md

    # Первые шаги { #first-steps }
    
    Самый простой файл FastAPI может выглядеть так:
    
    {* ../../docs_src/first_steps/tutorial001_py310.py *}
    
    Скопируйте это в файл `main.py`.
    
    Запустите сервер в режиме реального времени:
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> dev
    
      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/how-to/custom-docs-ui-assets.md

    ### 專案檔案結構 { #project-file-structure }
    
    假設你的專案檔案結構如下:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    ```
    
    現在建立一個目錄來存放這些靜態檔案。
    
    新的檔案結構可能如下:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    └── static/
    ```
    
    ### 下載檔案 { #download-the-files }
    
    下載文件所需的靜態檔案並放到 `static/` 目錄中。
    
    你可以在各連結上按右鍵,選擇類似「另存連結為...」的選項。
    
    Swagger UI 需要以下檔案:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/body-multiple-params.md

    首先,毫无疑问地,你可以随意地混合使用 `Path`、`Query` 和请求体参数声明,**FastAPI** 会知道该如何处理。
    
    你还可以通过将默认值设置为 `None` 来将请求体参数声明为可选参数:
    
    {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *}
    
    /// note | 注意
    
    请注意,在这种情况下,将从请求体获取的 `item` 是可选的。因为它的默认值为 `None`。
    
    ///
    
    ## 多个请求体参数 { #multiple-body-parameters }
    
    在上面的示例中,*路径操作*将期望一个具有 `Item` 的属性的 JSON 请求体,就像:
    
    ```JSON
    {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/body-updates.md

    然后再用它生成一个只含已设置(在请求中发送)数据、且省略默认值的 `dict`:
    
    {* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *}
    
    ### 使用 Pydantic 的 `update` 参数 { #using-pydantics-update-parameter }
    
    接下来,用 `.model_copy()` 为已有模型创建副本,并传入 `update` 参数,值为包含更新数据的 `dict`。
    
    例如,`stored_item_model.model_copy(update=update_data)`:
    
    {* ../../docs_src/body_updates/tutorial002_py310.py hl[33] *}
    
    ### 部分更新小结 { #partial-updates-recap }
    
    简而言之,应用部分更新应当:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Here, even though our *path operation function* is returning the same input user that contains the password:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...we declared the `response_model` to be our model `UserOut`, that doesn't include the password:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/body-multiple-params.md

    And you can also declare body parameters as optional, by setting the default to `None`:
    
    {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *}
    
    /// note
    
    Notice that, in this case, the `item` that would be taken from the body is optional. As it has a `None` default value.
    
    ///
    
    ## Multiple body parameters { #multiple-body-parameters }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 4.8K bytes
    - Click Count (0)
Back to Top