Five data type characteristics and classification

1. Mutable and immutable

Mutable: lists, dictionaries
Immutable: strings, numbers, tuples

 

2. Access order:
# Access string list tuple sequentially

# mapping dictionary

#Direct access to numbers

3. Store the number of elements

#Container type (stores multiple values) List tuple dictionary

#Atom (only one value can be stored) Numeric string

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325210063&siteId=291194637