- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for No (0.14 sec)
-
docs/em/docs/python-types.md
🖼, ➡️ ✊ 👉 🔢: ```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial009c.py!} ``` 🔢 `name` 🔬 `Optional[str]`, ✋️ ⚫️ **🚫 📦**, 👆 🚫🔜 🤙 🔢 🍵 🔢: ```Python say_hi() # Oh, no, this throws an error! 😱 ``` `name` 🔢 **✔** (🚫 *📦*) ↩️ ⚫️ 🚫 ✔️ 🔢 💲. , `name` 🚫 `None` 💲: ```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 - 13.6K bytes - Viewed (0) -
docs/en/docs/python-types.md
{!../../../docs_src/python_types/tutorial009c.py!} ``` 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
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/vi/docs/python-types.md
{!../../../docs_src/python_types/tutorial009c.py!} ``` Tham số `name` được định nghĩa là `Optional[str]`, nhưng nó **không phải là tùy chọn**, bạn không thể gọi hàm mà không có tham số: ```Python say_hi() # Oh, no, this throws an error! 😱 ``` Tham số `name` **vẫn được yêu cầu** (không phải là *tùy chọn*) vì nó không có giá trị mặc định. Trong khi đó, `name` chấp nhận `None` như là giá trị: ```Python
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/es/docs/python-types.md
```Python hl_lines="1" {!../../../docs_src/python_types/tutorial002.py!} ``` No es lo mismo a declarar valores por defecto, como sería con: ```Python first_name="john", last_name="doe" ``` Es algo diferente. Estamos usando los dos puntos (`:`), no un símbolo de igual (`=`). Añadir los type hints normalmente no cambia lo que sucedería si ellos no estuviesen presentes.
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) -
docs/pt/docs/python-types.md
Estamos usando dois pontos (`:`), não é igual a (`=`). E adicionar type hints normalmente não muda o que acontece do que aconteceria sem elas. Mas agora, imagine que você está novamente no meio da criação dessa função, mas com type hints. No mesmo ponto, você tenta acionar o preenchimento automático com o `Ctrl Space` e vê: <img src="/img/python-types/image02.png">
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)