- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for note (0.51 sec)
-
docs/em/docs/python-types.md
👯♂️ 💼 👉 ⛓ 👈 `item` 💪 `int` ⚖️ `str`. #### 🎲 `None` 👆 💪 📣 👈 💲 💪 ✔️ 🆎, 💖 `str`, ✋️ 👈 ⚫️ 💪 `None`. 🐍 3️⃣.6️⃣ & 🔛 (✅ 🐍 3️⃣.1️⃣0️⃣) 👆 💪 📣 ⚫️ 🏭 & ⚙️ `Optional` ⚪️➡️ `typing` 🕹. ```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial009.py!} ``` ⚙️ `Optional[str]` ↩️ `str` 🔜 ➡️ 👨🎨 ℹ 👆 🔍 ❌ 🌐❔ 👆 💪 🤔 👈 💲 🕧 `str`, 🕐❔ ⚫️ 💪 🤙 `None` 💁♂️.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13.6K bytes - Viewed (0) -
docs/en/docs/python-types.md
The parameter `name` is defined as `Optional[str]`, but it is **not optional**, you cannot call the function without the parameter: ```Python say_hi() # Oh, no, this throws an error! 😱 ``` The `name` parameter is **still required** (not *optional*) because it doesn't have a default value. Still, `name` accepts `None` as the value: ```Python say_hi(name=None) # This works, None is valid 🎉 ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17K bytes - Viewed (0) -
docs/ja/docs/python-types.md
* この`dict`の値は`float`型です。(つまり、各項目の価格) #### `Optional` また、`Optional`を使用して、変数が`str`のような型を持つことを宣言することもできますが、それは「オプション」であり、`None`にすることもできます。 ```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial009.py!} ``` ただの`str`の代わりに`Optional[str]`を使用することで、エディタは値が常に`str`であると仮定している場合に実際には`None`である可能性があるエラーを検出するのに役立ちます。 #### ジェネリック型 以下のように角括弧で型パラメータを取る型を: * `List` * `Tuple` * `Set` * `Dict`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.8K bytes - Viewed (0) -
docs/ru/docs/python-types.md
```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial009.py!} ``` Использование `Optional[str]` вместо просто `str` позволит редактору помочь вам в обнаружении ошибок, в которых вы могли бы предположить, что значение всегда является `str`, хотя на самом деле это может быть и `None`. #### Generic-типы
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.6K bytes - Viewed (0) -
docs/uk/docs/python-types.md
`Optional[Something]` насправді є скороченням для `Union[Something, None]`, вони еквівалентні. Це також означає, що в Python 3.10 ви можете використовувати `Something | None`: === "Python 3.8 і вище" ```Python hl_lines="1 4" {!> ../../../docs_src/python_types/tutorial009.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 19.7K bytes - Viewed (0) -
docs/zh/docs/python-types.md
通过声明变量的类型,编辑器和一些工具能给你提供更好的支持。 这只是一个关于 Python 类型提示的**快速入门 / 复习**。它仅涵盖与 **FastAPI** 一起使用所需的最少部分...实际上只有很少一点。 整个 **FastAPI** 都基于这些类型提示构建,它们带来了许多优点和好处。 但即使你不会用到 **FastAPI**,了解一下类型提示也会让你从中受益。 !!! note 如果你已经精通 Python,并且了解关于类型提示的一切知识,直接跳到下一章节吧。 ## 动机 让我们从一个简单的例子开始: ```Python {!../../../docs_src/python_types/tutorial001.py!} ``` 运行这段程序将输出: ``` John Doe ``` 这个函数做了下面这些事情:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.6K bytes - Viewed (0) -
docs/vi/docs/python-types.md
`Optional[Something]` là một cách viết ngắn gọn của `Union[Something, None]`, chúng là tương đương nhau. Điều này cũng có nghĩa là trong Python 3.10, bạn có thể sử dụng `Something | None`: === "Python 3.10+" ```Python hl_lines="1" {!> ../../../docs_src/python_types/tutorial009_py310.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 21.9K bytes - Viewed (0) -
docs/pt/docs/python-types.md
O **FastAPI** é baseado nesses type hints, eles oferecem muitas vantagens e benefícios. Mas mesmo que você nunca use o **FastAPI**, você se beneficiaria de aprender um pouco sobre eles. !!! note "Nota" Se você é um especialista em Python e já sabe tudo sobre type hints, pule para o próximo capítulo. ## Motivação Vamos começar com um exemplo simples: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.6K bytes - Viewed (0) -
docs/tr/docs/python-types.md
**FastAPI' nin** tamamı bu tür tip belirteçleri ile donatılmıştır ve birçok avantaj sağlamaktadır. **FastAPI** kullanmayacak olsanız bile tür belirteçleri hakkında bilgi edinmenizde fayda var. !!! note "Not" Python uzmanıysanız ve tip belirteçleri ilgili her şeyi zaten biliyorsanız, sonraki bölüme geçin. ## Motivasyon Basit bir örnek ile başlayalım: ```Python {!../../../docs_src/python_types/tutorial001.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.7K bytes - Viewed (0) -
docs/es/docs/python-types.md
Todo **FastAPI** está basado en estos type hints, lo que le da muchas ventajas y beneficios. Pero, así nunca uses **FastAPI** te beneficiarás de aprender un poco sobre los type hints. !!! note "Nota" Si eres un experto en Python y ya lo sabes todo sobre los type hints, salta al siguiente capítulo. ## Motivación Comencemos con un ejemplo simple: ```Python
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)