Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for init (0.23 sec)

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

    ### Passo 5: retorne o conteúdo
    
    ```Python hl_lines="8"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Você pode retornar um `dict`, `list` e valores singulares como `str`, `int`, etc.
    
    Você também pode devolver modelos Pydantic (você verá mais sobre isso mais tarde).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/first-steps.md

    ### 步骤 5:返回内容
    
    ```Python hl_lines="8"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    你可以返回一个 `dict`、`list`,像 `str`、`int` 一样的单个值,等等。
    
    你还可以返回 Pydantic 模型(稍后你将了解更多)。
    
    还有许多其他将会自动转换为 JSON 的对象和模型(包括 ORM 对象等)。尝试下使用你最喜欢的一种,它很有可能已经被支持。
    
    ## 总结
    
    * 导入 `FastAPI`。
    * 创建一个 `app` 实例。
    * 编写一个**路径操作装饰器**(如 `@app.get("/")`)。
    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)
  3. docs/em/docs/tutorial/first-steps.md

    ### 🔁 5️⃣: 📨 🎚
    
    ```Python hl_lines="8"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    👆 💪 📨 `dict`, `list`, ⭐ 💲 `str`, `int`, ♒️.
    
    👆 💪 📨 Pydantic 🏷 (👆 🔜 👀 🌅 🔃 👈 ⏪).
    
    📤 📚 🎏 🎚 & 🏷 👈 🔜 🔁 🗜 🎻 (🔌 🐜, ♒️). 🔄 ⚙️ 👆 💕 🕐, ⚫️ 🏆 🎲 👈 👫 ⏪ 🐕‍🦺.
    
    ## 🌃
    
    * 🗄 `FastAPI`.
    * ✍ `app` 👐.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top