031 data type classification

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

Built-in digital type method

String type built-in method

List type built-in method

Built-in methods tuple

Dictionary built-in methods

A collection of built-in method

Guess you like

Origin www.cnblogs.com/xichenHome/p/11304971.html