- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 88 for tuple (0.34 sec)
-
docs/ko/docs/tutorial/response-model.md
{!../../../docs_src/response_model/tutorial005.py!} ``` !!! tip "팁" 문법 `{"name", "description"}`은 두 값을 갖는 `set`을 만듭니다. 이는 `set(["name", "description"])`과 동일합니다. #### `set` 대신 `list` 사용하기 `list` 또는 `tuple` 대신 `set`을 사용하는 법을 잊었더라도, FastAPI는 `set`으로 변환하고 정상적으로 작동합니다: ```Python hl_lines="31 37" {!../../../docs_src/response_model/tutorial006.py!} ``` ## 요약
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.2K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
{!> ../../../docs_src/body_nested_models/tutorial002.py!} ``` ### Объявление `list` с указанием типов для вложенных элементов Объявление типов для элементов (внутренних типов) вложенных в такие типы как `list`, `dict`, `tuple`: * Если у вас Python версии ниже чем 3.9, импортируйте их аналог из модуля `typing` * Передайте внутренний(ие) тип(ы) как "параметры типа", используя квадратные скобки: `[` и `]` В Python версии 3.9 это будет выглядеть так:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/response-model.md
``` !!! tip "豆知識" `{"name", "description"}`の構文はこれら2つの値をもつ`set`を作成します。 これは`set(["name", "description"])`と同等です。 #### `set`の代わりに`list`を使用する もし`set`を使用することを忘れて、代わりに`list`や`tuple`を使用しても、FastAPIはそれを`set`に変換して正しく動作します: ```Python hl_lines="31 37" {!../../../docs_src/response_model/tutorial006.py!} ``` ## まとめ
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/math_grad_test.cc
absl::Span<AbstractTensorHandle*> outputs) { return ops::DivNoNan(ctx, inputs[0], inputs[1], &outputs[0], "DivNoNan"); } class CppGradients : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> { protected: void SetUp() override { TF_StatusPtr status(TF_NewStatus()); TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Thu Apr 13 17:32:14 GMT 2023 - 16.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 77.2K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
```Python hl_lines="1" {!> ../../../docs_src/body_nested_models/tutorial002.py!} ``` ### Declare a `list` with a type parameter To declare types that have type parameters (internal types), like `list`, `dict`, `tuple`: * If you are in a Python version lower than 3.9, import their equivalent version from the `typing` module * Pass the internal type(s) as "type parameters" using square brackets: `[` and `]` In Python 3.9 it would be:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-nested-models.md
### typingの`List`をインポート まず、Pythonの標準の`typing`モジュールから`List`をインポートします: ```Python hl_lines="1" {!../../../docs_src/body_nested_models/tutorial002.py!} ``` ### タイプパラメータを持つ`List`の宣言 `list`や`dict`、`tuple`のようなタイプパラメータ(内部の型)を持つ型を宣言するには: * `typing`モジュールからそれらをインストールします。 * 角括弧(`[`と`]`)を使って「タイプパラメータ」として内部の型を渡します: ```Python from typing import List my_list: List[str] ``` 型宣言の標準的なPythonの構文はこれだけです。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-nested-models.md
### 从 typing 导入 `List` 首先,从 Python 的标准库 `typing` 模块中导入 `List`: ```Python hl_lines="1" {!> ../../../docs_src/body_nested_models/tutorial002.py!} ``` ### 声明具有子类型的 List 要声明具有子类型的类型,例如 `list`、`dict`、`tuple`: * 从 `typing` 模块导入它们 * 使用方括号 `[` 和 `]` 将子类型作为「类型参数」传入 ```Python from typing import List my_list: List[str] ``` 这完全是用于类型声明的标准 Python 语法。 对具有子类型的模型属性也使用相同的标准语法。
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
It is equivalent to `set(["name", "description"])`. #### Using `list`s instead of `set`s If you forget to use a `set` and use a `list` or `tuple` instead, FastAPI will still convert it to a `set` and it will work correctly: === "Python 3.10+" ```Python hl_lines="29 35" {!> ../../../docs_src/response_model/tutorial006_py310.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/em/docs/tutorial/body-nested-models.md
```Python hl_lines="1" {!> ../../../docs_src/body_nested_models/tutorial002.py!} ``` ### 📣 `list` ⏮️ 🆎 🔢 📣 🆎 👈 ✔️ 🆎 🔢 (🔗 🆎), 💖 `list`, `dict`, `tuple`: * 🚥 👆 🐍 ⏬ 🔅 🌘 3️⃣.9️⃣, 🗄 👫 🌓 ⏬ ⚪️➡️ `typing` 🕹 * 🚶♀️ 🔗 🆎(Ⓜ) "🆎 🔢" ⚙️ ⬜ 🗜: `[` & `]` 🐍 3️⃣.9️⃣ ⚫️ 🔜: ```Python my_list: list[str] ``` ⏬ 🐍 ⏭ 3️⃣.9️⃣, ⚫️ 🔜: ```Python
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.2K bytes - Viewed (0)