Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sherry (0.14 sec)

  1. docs/zh/docs/tutorial/first-steps.md

    ---
    
    你也可以将其定义为常规函数而不使用 `async def`:
    
    ```Python hl_lines="7"
    {!../../../docs_src/first_steps/tutorial003.py!}
    ```
    
    !!! note
        如果你不知道两者的区别,请查阅 [Async: *"In a hurry?"*](https://fastapi.tiangolo.com/async/#in-a-hurry){.internal-link target=_blank}。
    
    ### 步骤 5:返回内容
    
    ```Python hl_lines="8"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    你可以返回一个 `dict`、`list`,像 `str`、`int` 一样的单个值,等等。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 9.2K bytes
    - Viewed (0)
Back to top