- Sort Score
- Result 10 results
- Languages All
Results 541 - 550 of 871 for tutorial001 (0.34 sec)
-
docs/en/docs/tutorial/query-params-str-validations.md
```Python hl_lines="7" {!> ../../docs_src/query_params_str_validations/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="9" {!> ../../docs_src/query_params_str_validations/tutorial001.py!} ``` ////
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 25.4K bytes - Viewed (0) -
docs/vi/docs/python-types.md
```Python hl_lines="1" {!../../docs_src/python_types/tutorial003.py!} ``` Bởi vì trình soạn thảo biết kiểu dữ liệu của các biến, bạn không chỉ có được completion, bạn cũng được kiểm tra lỗi: <img src="/img/python-types/image04.png"> Bây giờ bạn biết rằng bạn phải sửa nó, chuyển `age` sang một xâu với `str(age)`: ```Python hl_lines="2" {!../../docs_src/python_types/tutorial004.py!} ``` ## Khai báo các kiểu dữ liệu
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 21.6K bytes - Viewed (0) -
docs/em/docs/advanced/generate-clients.md
## 🏗 📕 🕸 👩💻 ➡️ ▶️ ⏮️ 🙅 FastAPI 🈸: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="9-11 14-15 18 19 23" {!> ../../docs_src/generate_clients/tutorial001.py!} ``` //// //// tab | 🐍 3️⃣.9️⃣ & 🔛 ```Python hl_lines="7-9 12-13 16-17 21" {!> ../../docs_src/generate_clients/tutorial001_py39.py!} ``` ////
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/security/get-current-user.md
```Python hl_lines="10" {!../../docs_src/security/tutorial001.py!} ``` しかし、それはまだそんなに有用ではありません。 現在のユーザーを取得するようにしてみましょう。 ## ユーザーモデルの作成 まずは、Pydanticのユーザーモデルを作成しましょう。 ボディを宣言するのにPydanticを使用するのと同じやり方で、Pydanticを別のどんなところでも使うことができます: ```Python hl_lines="5 12-16" {!../../docs_src/security/tutorial002.py!} ``` ## 依存関係 `get_current_user` を作成 依存関係 `get_current_user` を作ってみましょう。
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.6K bytes - Viewed (0) -
docs/em/docs/tutorial/testing.md
✍ 🔢 ⏮️ 📛 👈 ▶️ ⏮️ `test_` (👉 🐩 `pytest` 🏛). ⚙️ `TestClient` 🎚 🎏 🌌 👆 ⏮️ `httpx`. ✍ 🙅 `assert` 📄 ⏮️ 🐩 🐍 🧬 👈 👆 💪 ✅ (🔄, 🐩 `pytest`). ```Python hl_lines="2 12 15-18" {!../../docs_src/app_testing/tutorial001.py!} ``` /// tip 👀 👈 🔬 🔢 😐 `def`, 🚫 `async def`. & 🤙 👩💻 😐 🤙, 🚫 ⚙️ `await`. 👉 ✔ 👆 ⚙️ `pytest` 🔗 🍵 🤢. /// /// note | "📡 ℹ"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params.md
```Python hl_lines="16" {!../../docs_src/path_params/tutorial005.py!} ``` ### 查看文档 API 文档会显示预定义*路径参数*的可用值: <img src="/img/tutorial/path-params/image03.png"> ### 使用 Python _枚举类型_ *路径参数*的值是枚举的元素。 #### 比较*枚举元素* 枚举类 `ModelName` 中的*枚举元素*支持比较操作: ```Python hl_lines="17" {!../../docs_src/path_params/tutorial005.py!} ``` #### 获取*枚举值*
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/testing.md
创建名字以 `test_` 开头的函数(这是标准的 `pytest` 约定)。 像使用 `httpx` 那样使用 `TestClient` 对象。 为你需要检查的地方用标准的Python表达式写个简单的 `assert` 语句(重申,标准的`pytest`)。 ```Python hl_lines="2 12 15-18" {!../../docs_src/app_testing/tutorial001.py!} ``` /// tip | "提示" 注意测试函数是普通的 `def`,不是 `async def`。 还有client的调用也是普通的调用,不是用 `await`。 这让你可以直接使用 `pytest` 而不会遇到麻烦。 /// /// note | "技术细节"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6K bytes - Viewed (0) -
docs/pt/docs/tutorial/testing.md
Escreva instruções `assert` simples com as expressões Python padrão que você precisa verificar (novamente, `pytest` padrão). ```Python hl_lines="2 12 15-18" {!../../docs_src/app_testing/tutorial001.py!} ``` /// tip | "Dica" Observe que as funções de teste são `def` normais, não `async def`. E as chamadas para o cliente também são chamadas normais, não usando `await`.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/cors.md
你也可以指定后端是否允许: * 凭证(授权 headers,Cookies 等)。 * 特定的 HTTP 方法(`POST`,`PUT`)或者使用通配符 `"*"` 允许所有方法。 * 特定的 HTTP headers 或者使用通配符 `"*"` 允许所有 headers。 ```Python hl_lines="2 6-11 13-19" {!../../docs_src/cors/tutorial001.py!} ``` 默认情况下,这个 `CORSMiddleware` 实现所使用的默认参数较为保守,所以你需要显式地启用特定的源、方法或者 headers,以便浏览器能够在跨域上下文中使用它们。 支持以下参数:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-models.md
```Python hl_lines="1 14 15 18 19 20 33" {!../../docs_src/extra_models/tutorial003.py!} ``` ## モデルのリスト 同じように、オブジェクトのリストのレスポンスを宣言することができます。 そのためには、標準のPythonの`typing.List`を使用する: ```Python hl_lines="1 20" {!../../docs_src/extra_models/tutorial004.py!} ``` ## 任意の`dict`を持つレスポンス また、Pydanticモデルを使用せずに、キーと値の型だけを定義した任意の`dict`を使ってレスポンスを宣言することもできます。
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.7K bytes - Viewed (0)