Make up: 16 notes Variables and Data Types

role name = "test" # define a variable: the change in the state is used to process 

# query "test" memory space ID (name)
# string variable digital dictionary or list of tuples immutable
# immutable: when the variable name when the names were again reassigned memory address: For example: a string of digital tuple (itself can not be modified, etc.)
# variable: when you modify the contents of the address space which does not change: For example: lists, dictionaries (key corresponding to the value, is modified value)

string:

List

 

Access sequence:

1. sequential access: access 0.1.23 like sequence is: string tuples

2. Map of access: Dictionaries

3. Speed: faster than a dictionary list, but dictionaries comparison of total memory

4. The direct access number to access

 

Store holds the number of elements:

Type containers: a plurality of values ​​can be stored: for example: a list of tuples dictionaries

Atoms: number string

Guess you like

Origin www.cnblogs.com/jianchixuexu/p/11518488.html