- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 924 for tutorial008_py310 (0.19 seconds)
-
docs_src/body_nested_models/tutorial008_py310.py
Sebastián Ramírez <******@****.***> 1770902383 -0800
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 248 bytes - Click Count (0) -
docs_src/custom_response/tutorial008_py310.py
Sebastián Ramírez <******@****.***> 1770902383 -0800
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 360 bytes - Click Count (0) -
docs_src/python_types/tutorial008_py310.py
Sebastián Ramírez <******@****.***> 1770902383 -0800
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 145 bytes - Click Count (0) -
docs_src/dependencies/tutorial008_py310.py
Sebastián Ramírez <******@****.***> 1770902383 -0800
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 455 bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/body-nested-models.md
對於具有內部型別的模型屬性,也使用相同的標準語法。 因此,在我們的範例中,可以讓 `tags` 明確成為「字串的列表」: {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## 集合型別 { #set-types } 但進一步思考後,我們會意識到 `tags` 不應該重覆,應該是唯一的字串。 而 Python 有一種用於唯一元素集合的特殊資料型別:`set`。 因此我們可以將 `tags` 宣告為字串的 `set`: {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *} 這樣一來,即使收到包含重覆資料的請求,也會被轉換為由唯一元素組成的 `set`。 之後只要輸出該資料,即使來源有重覆,也會以唯一元素的 `set` 輸出。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 6.5K bytes - Click Count (0) -
docs/en/docs/python-types.md
{* ../../docs_src/python_types/tutorial003_py310.py hl[1] *} Because the editor knows the types of the variables, you don't only get completion, you also get error checks: <img src="/img/python-types/image04.png"> Now you know that you have to fix it, convert `age` to a string with `str(age)`: {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *} ## Declaring types { #declaring-types }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/en/docs/tutorial/body-nested-models.md
{* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## Set types { #set-types } But then we think about it, and realize that tags shouldn't repeat, they would probably be unique strings. And Python has a special data type for sets of unique items, the `set`. Then we can declare `tags` as a set of strings: {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 6.6K bytes - Click Count (0) -
docs/ko/docs/tutorial/body-nested-models.md
마찬가지로 예제에서 `tags`를 구체적으로 "문자열의 리스트"로 만들 수 있습니다: {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## 집합 타입 { #set-types } 그런데 생각해보니 태그는 반복되면 안 되고, 아마 고유한 문자열이어야 할 것입니다. 그리고 파이썬에는 고유한 항목들의 집합을 위한 특별한 데이터 타입 `set`이 있습니다. 그렇다면 `tags`를 문자열의 집합으로 선언할 수 있습니다: {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *} 이렇게 하면 중복 데이터가 있는 요청을 받더라도 고유한 항목들의 집합으로 변환됩니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 7.7K bytes - Click Count (0) -
pyproject.toml
"docs_src/dependencies/tutorial008_py310.py" = ["F821"] "docs_src/dependencies/tutorial008_py39.py" = ["F821"] "docs_src/dependencies/tutorial008b_an_py310.py" = ["B904"] "docs_src/dependencies/tutorial008b_an_py39.py" = ["B904"] "docs_src/dependencies/tutorial008b_py310.py" = ["B904"] "docs_src/dependencies/tutorial008b_py39.py" = ["B904"] "docs_src/dependencies/tutorial009_py310.py" = ["F821"]
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 12:36:49 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/ja/docs/tutorial/body-nested-models.md
そのため、以下の例では`tags`を具体的な「文字列のリスト」にすることができます: {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## セット型 { #set-types } しかし、よく考えてみると、タグは繰り返すべきではなく、おそらくユニークな文字列になるのではないかと気付いたとします。 そして、Pythonにはユニークな項目のセットのための特別なデータ型`set`があります。 そして、`tags`を文字列のセットとして宣言できます: {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *} これを使えば、データが重複しているリクエストを受けた場合でも、ユニークな項目のセットに変換されます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 8.6K bytes - Click Count (0)