- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for sset (0.12 sec)
-
docs/zh/docs/tutorial/body-nested-models.md
``` === "Python 3.8+" ```Python hl_lines="14" {!> ../../../docs_src/body_nested_models/tutorial002.py!} ``` ## Set 类型 但是随后我们考虑了一下,意识到标签不应该重复,它们很大可能会是唯一的字符串。 Python 具有一种特殊的数据类型来保存一组唯一的元素,即 `set`。 然后我们可以导入 `Set` 并将 `tag` 声明为一个由 `str` 组成的 `set`: === "Python 3.10+" ```Python hl_lines="12" {!> ../../../docs_src/body_nested_models/tutorial003_py310.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-nested-models.md
```Python hl_lines="14" {!../../../docs_src/body_nested_models/tutorial002.py!} ``` ## セット型 しかし、よく考えてみると、タグは繰り返すべきではなく、おそらくユニークな文字列になるのではないかと気付いたとします。 そして、Pythonにはユニークな項目のセットのための特別なデータ型`set`があります。 そのため、以下のように、`Set`をインポートして`str`の`set`として`tags`を宣言することができます: ```Python hl_lines="1 14" {!../../../docs_src/body_nested_models/tutorial003.py!} ``` これを使えば、データが重複しているリクエストを受けた場合でも、ユニークな項目のセットに変換されます。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.7K bytes - Viewed (0) -
docs/em/docs/tutorial/body-nested-models.md
```Python hl_lines="12" {!> ../../../docs_src/body_nested_models/tutorial002_py310.py!} ``` ## ⚒ 🆎 ✋️ ⤴️ 👥 💭 🔃 ⚫️, & 🤔 👈 🔖 🚫🔜 🚫 🔁, 👫 🔜 🎲 😍 🎻. & 🐍 ✔️ 🎁 💽 🆎 ⚒ 😍 🏬, `set`. ⤴️ 👥 💪 📣 `tags` ⚒ 🎻: === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="1 14" {!> ../../../docs_src/body_nested_models/tutorial003.py!} ``` === "🐍 3️⃣.9️⃣ & 🔛"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.2K bytes - Viewed (0)