Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 563 for tipo (0.02 sec)

  1. docs/zh/docs/advanced/events.md

    {!../../docs_src/events/tutorial002.py!}
    ```
    
    此处,`shutdown` 事件处理器函数在 `log.txt` 中写入一行文本 `Application shutdown`。
    
    /// info | "说明"
    
    `open()` 函数中,`mode="a"` 指的是**追加**。因此这行文本会添加在文件已有内容之后,不会覆盖之前的内容。
    
    ///
    
    /// tip | "提示"
    
    注意,本例使用 Python `open()` 标准函数与文件交互。
    
    这个函数执行 I/O(输入/输出)操作,需要等待内容写进磁盘。
    
    但 `open()` 函数不支持使用 `async` 与 `await`。
    
    因此,声明事件处理函数要使用 `def`,不能使用 `asnyc def`。
    
    ///
    
    /// info | "说明"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    你应该在添加了所有 *路径操作* 之后执行此操作。
    
    ```Python hl_lines="2 12 13 14 15 16 17 18 19 20 21 24"
    {!../../docs_src/path_operation_advanced_configuration/tutorial002.py!}
    ```
    
    /// tip
    
    如果你手动调用 `app.openapi()`,你应该在此之前更新 `operationId`。
    
    ///
    
    /// warning
    
    如果你这样做,务必确保你的每个 *路径操作函数* 的名字唯一。
    
    即使它们在不同的模块中(Python 文件)。
    
    ///
    
    ## 从 OpenAPI 中排除
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. CONTRIBUTING.md

    [APIs]: https://en.wikipedia.org/wiki/Application_programming_interface
    [issue]: https://github.com/google/guava/issues
    
    Pull requests
    -------------
    
    Unless the change is a trivial fix such as for a typo, it's generally best to
    start by opening a new issue describing the bug or feature you're intending to
    fix. Even if you think it's relatively minor, it's helpful to know what people
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/dependencies/global-dependencies.md

    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="16"
    {!> ../../docs_src/dependencies/tutorial012_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.8 Annotated가 없는 경우
    
    /// tip | "팁"
    
    가능하다면 `Annotated`가 달린 버전을 권장합니다.
    
    ///
    
    ```Python hl_lines="15"
    {!> ../../docs_src/dependencies/tutorial012.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/dataclasses.md

    You can combine `dataclasses` with other type annotations in many different combinations to form complex data structures.
    
    Check the in-code annotation tips above to see more specific details.
    
    ## Learn More
    
    You can also combine `dataclasses` with other Pydantic models, inherit from them, include them in your own models, etc.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:35:06 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. docs/ja/docs/deployment/manually.md

    <div class="termy">
    
    ```console
    $ pip install "uvicorn[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    ////
    
    /// tip | "豆知識"
    
    `standard` を加えることで、Uvicornがインストールされ、いくつかの推奨される依存関係を利用するようになります。
    
    これには、`asyncio` の高性能な完全互換品である `uvloop` が含まれ、並行処理のパフォーマンスが大幅に向上します。
    
    ///
    
    //// tab | Hypercorn
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/middleware.md

        * 👉 🔢 🔜 🚶‍♀️ `request` 🔗 *➡ 🛠️*.
        * ⤴️ ⚫️ 📨 `response` 🏗 🔗 *➡ 🛠️*.
    * 👆 💪 ⤴️ 🔀 🌅 `response` ⏭ 🛬 ⚫️.
    
    ```Python hl_lines="8-9  11  14"
    {!../../docs_src/middleware/tutorial001.py!}
    ```
    
    /// tip
    
    ✔️ 🤯 👈 🛃 © 🎚 💪 🚮 <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers" class="external-link" target="_blank">⚙️ '✖-' 🔡</a>.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. docs/en/docs/python-types.md

    In this case, `str` is the type parameter passed to `List` (or `list` in Python 3.9 and above).
    
    ///
    
    That means: "the variable `items` is a `list`, and each of the items in this list is a `str`".
    
    /// tip
    
    If you use Python 3.9 or above, you don't have to import `List` from `typing`, you can use the same regular `list` type instead.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:47:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/query-params-str-validations.md

    你可以声明一个参数可以接收`None`值,但它仍然是必需的。这将强制客户端发送一个值,即使该值是`None`。
    
    为此,你可以声明`None`是一个有效的类型,并仍然使用`default=...`:
    
    ```Python hl_lines="9"
    {!../../docs_src/query_params_str_validations/tutorial006c.py!}
    ```
    
    /// tip
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Deberías hacerlo después de adicionar todas tus *operaciones de path*.
    
    ```Python hl_lines="2 12 13 14 15 16 17 18 19 20 21 24"
    {!../../docs_src/path_operation_advanced_configuration/tutorial002.py!}
    ```
    
    /// tip | Consejo
    
    Si llamas manualmente a `app.openapi()`, debes actualizar el `operationId`s antes de hacerlo.
    
    ///
    
    /// warning | Advertencia
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top