Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for define (0.14 sec)

  1. docs/en/docs/python-types.md

    If you can use the **latest versions of Python**, use the examples for the latest version, those will have the **best and simplest syntax**, for example, "**Python 3.10+**".
    
    #### List
    
    For example, let's define a variable to be a `list` of `str`.
    
    === "Python 3.9+"
    
        Declare the variable, with the same colon (`:`) syntax.
    
        As the type, put `list`.
    
    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)
  2. docs/es/docs/python-types.md

    Para declarar esos tipos y sub-tipos puedes usar el módulo estándar de Python `typing`.
    
    Él existe específicamente para dar soporte a este tipo de type hints.
    
    #### Listas
    
    Por ejemplo, vamos a definir una variable para que sea una `list` compuesta de `str`.
    
    De `typing`, importa `List` (con una `L` mayúscula):
    
    ```Python hl_lines="1"
    {!../../../docs_src/python_types/tutorial006.py!}
    ```
    
    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)
  3. docs/pt/docs/python-types.md

    Para declarar esses tipos e os tipos internos, você pode usar o módulo Python padrão `typing`.
    
    Ele existe especificamente para suportar esses type hints.
    
    #### `List`
    
    Por exemplo, vamos definir uma variável para ser uma `lista` de `str`.
    
    Em `typing`, importe `List` (com um `L` maiúsculo):
    
    ```Python hl_lines="1"
    {!../../../docs_src/python_types/tutorial006.py!}
    ```
    
    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)
Back to top