Search Options

Results per page
Sort
Preferred Languages
Advance

Results 531 - 540 of 895 for python (0.09 sec)

  1. docs/zh/docs/tutorial/metadata.md

    你可以按如下方式设置它们:
    
    ```Python hl_lines="4-6"
    {!../../docs_src/metadata/tutorial001.py!}
    ```
    
    /// tip
    
    您可以在 `description` 字段中编写 Markdown,它将在输出中呈现。
    
    ///
    
    通过这样设置,自动 API 文档看起来会像:
    
    <img src="/img/tutorial/metadata/image01.png">
    
    ## 标签元数据
    
    ### 创建标签元数据
    
    让我们在带有标签的示例中为 `users` 和 `items` 试一下。
    
    创建标签元数据并把它传递给 `openapi_tags` 参数:
    
    ```Python hl_lines="3-16  18"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/c/BUILD

        ],
    )
    
    # -----------------------------------------------------------------------------
    # Python API target
    
    tf_cuda_library(
        name = "python_api",
        srcs = ["python_api.cc"],
        hdrs = ["python_api.h"],
        visibility = [
            "//tensorflow:internal",
            "//tensorflow/python:__pkg__",
        ],
        deps = [
            ":c_api",
            ":c_api_internal",
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Nov 02 06:47:06 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  3. docs/zh/docs/async.md

    这一点,再加上 Python 是**数据科学**、机器学习(尤其是深度学习)的主要语言这一简单事实,使得 **FastAPI** 与数据科学/机器学习 Web API 和应用程序(以及其他许多应用程序)非常匹配。
    
    了解如何在生产环境中实现这种并行性,可查看此文 [Deployment](deployment/index.md){.internal-link target=_blank}。
    
    ## `async` 和 `await`
    
    现代版本的 Python 有一种非常直观的方式来定义异步代码。这使它看起来就像正常的"顺序"代码,并在适当的时候"等待"。
    
    当有一个操作需要等待才能给出结果,且支持这个新的 Python 特性时,您可以编写如下代码:
    
    ```Python
    burgers = await get_burgers(2)
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/dependencies/index.md

    * 类型为 `int` 的可选查询参数 `skip`,默认值是 `0`
    * 类型为 `int` 的可选查询参数 `limit`,默认值是 `100`
    
    然后,依赖项函数返回包含这些值的 `dict`。
    
    ### 导入 `Depends`
    
    ```Python hl_lines="3"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ### 声明依赖项
    
    与在*路径操作函数*参数中使用 `Body`、`Query` 的方式相同,声明依赖项需要使用 `Depends` 和一个新的参数:
    
    ```Python hl_lines="15  20"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/sub-applications.md

    ### 🔝-🎚 🈸
    
    🥇, ✍ 👑, 🔝-🎚, **FastAPI** 🈸, &amp; 🚮 *➡ 🛠️*:
    
    ```Python hl_lines="3  6-8"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### 🎧-🈸
    
    ⤴️, ✍ 👆 🎧-🈸, &amp; 🚮 *➡ 🛠️*.
    
    👉 🎧-🈸 ➕1️⃣ 🐩 FastAPI 🈸, ✋️ 👉 1️⃣ 👈 🔜 "🗻":
    
    ```Python hl_lines="11  14-16"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### 🗻 🎧-🈸
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/response-cookies.md

    # 📨 🍪
    
    ## ⚙️ `Response` 🔢
    
    👆 💪 📣 🔢 🆎 `Response` 👆 *➡ 🛠️ 🔢*.
    
    &amp; ⤴️ 👆 💪 ⚒ 🍪 👈 *🔀* 📨 🎚.
    
    ```Python hl_lines="1  8-9"
    {!../../docs_src/response_cookies/tutorial002.py!}
    ```
    
    &amp; ⤴️ 👆 💪 📨 🙆 🎚 👆 💪, 👆 🛎 🔜 ( `dict`, 💽 🏷, ♒️).
    
    &amp; 🚥 👆 📣 `response_model`, ⚫️ 🔜 ⚙️ ⛽ &amp; 🗜 🎚 👆 📨.
    
    **FastAPI** 🔜 ⚙️ 👈 *🔀* 📨 ⚗ 🍪 (🎚 &amp; 👔 📟), &amp; 🔜 🚮 👫 🏁 📨 👈 🔌 💲 👆 📨, ⛽ 🙆 `response_model`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/testing-dependencies.md

    &amp; ⤴️ **FastAPI** 🔜 🤙 👈 🔐 ↩️ ⏮️ 🔗.
    
    ```Python hl_lines="28-29  32"
    {!../../docs_src/dependency_testing/tutorial001.py!}
    ```
    
    /// tip
    
    👆 💪 ⚒ 🔗 🔐 🔗 ⚙️ 🙆 👆 **FastAPI** 🈸.
    
    ⏮️ 🔗 💪 ⚙️ *➡ 🛠️ 🔢*, *➡ 🛠️ 👨‍🎨* (🕐❔ 👆 🚫 ⚙️ 📨 💲), `.include_router()` 🤙, ♒️.
    
    FastAPI 🔜 💪 🔐 ⚫️.
    
    ///
    
    ⤴️ 👆 💪 ⏲ 👆 🔐 (❎ 👫) ⚒ `app.dependency_overrides` 🛁 `dict`:
    
    ```Python
    app.dependency_overrides = {}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/security/first-steps.md

    まずはこのコードを使って、どう動くか観察します。その後で、何が起こっているのか理解しましょう。
    
    ## `main.py`を作成
    
    `main.py`に、下記の例をコピーします:
    
    ```Python
    {!../../docs_src/security/tutorial001.py!}
    ```
    
    ## 実行
    
    /// info | "情報"
    
    まず<a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>をインストールします。
    
    例えば、`pip install python-multipart`。
    
    これは、**OAuth2**が `ユーザー名` や `パスワード` を送信するために、「フォームデータ」を使うからです。
    
    ///
    
    例を実行します:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. README.md

    commands.
    
    *Nightly binaries are available for testing using the
    [tf-nightly](https://pypi.python.org/pypi/tf-nightly) and
    [tf-nightly-cpu](https://pypi.python.org/pypi/tf-nightly-cpu) packages on PyPi.*
    
    #### *Try your first TensorFlow program*
    
    ```shell
    $ python
    ```
    
    ```python
    >>> import tensorflow as tf
    >>> tf.add(1, 2).numpy()
    3
    >>> hello = tf.constant('Hello, TensorFlow!')
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 05 15:00:10 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. docs/en/docs/project-generation.md

    ## Full Stack FastAPI Template - Technology Stack and Features
    
    - ⚡ [**FastAPI**](https://fastapi.tiangolo.com) for the Python backend API.
        - 🧰 [SQLModel](https://sqlmodel.tiangolo.com) for the Python SQL database interactions (ORM).
        - 🔍 [Pydantic](https://docs.pydantic.dev), used by FastAPI, for the data validation and settings management.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Oct 04 11:16:34 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top