Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for variable (0.17 sec)

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

    #### 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`.
    
        As the list is a type that contains some internal types, you put them in square brackets:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  2. docs/fr/docs/python-types.md

    ### Classes en tant que types
    
    Vous pouvez aussi déclarer une classe comme type d'une variable.
    
    Disons que vous avez une classe `Person`, avec une variable `name` :
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    Vous pouvez ensuite déclarer une variable de type `Person` :
    
    ```Python hl_lines="6"
    {!../../../docs_src/python_types/tutorial010.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. docs/es/docs/python-types.md

    #### 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!}
    ```
    
    Declara la variable con la misma sintaxis de los dos puntos (`:`).
    
    Pon `List` como el tipo.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  4. docs/de/docs/python-types.md

    #### Liste
    
    Definieren wir zum Beispiel eine Variable, die eine `list` von `str` – eine Liste von Strings – sein soll.
    
    === "Python 3.9+"
    
        Deklarieren Sie die Variable mit der gleichen Doppelpunkt-Syntax (`:`).
    
        Als Typ nehmen Sie `list`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top