A, distinguished by the number of stored value
Number of stored-value | type of data |
---|---|
A single value | Numbers, strings |
A plurality of values (containers) | Lists, tuples, dictionaries, collections |
Second, according to the variable to distinguish immutable
Variable or immutable | type of data |
---|---|
variable | Lists, dictionaries, collections |
Immutable | Number, a string, a tuple |
Third, the order-disorder distinguish
Ordered or unordered | type of data |
---|---|
Ordered (index value may be) | Strings, lists, tuples |
Immutable | Dictionaries, collections |
Fourth, according to distinguish the type of access
Access Type | type of data |
---|---|
direct interview | digital |
Sequential access (sequence type) | Strings, lists, tuples |
Access key value (mapping type) | dictionary |
Five, six built-in data types Method