#dict( Dictionaries )
# A dictionary is a collection of unordered objects , Use key value (key-value) For storing data
# With extremely fast query speed
# key (key) Immutable type must be used
# Middle key in the same dictionary (key) Is the only one.
# You can use dict() perhaps {} Create a dictionary object
#dict() Create an empty dictionary
dt01_1 = dict()
dt01_2 = {
}
#dict(mapping)dt01_3 = {'a':1,'b':2,'c':3}
#dict(iterable)
# Not available here {} Instead of dict()
lt = [1,2,3]
tt = ('a','b','c')
dt01_4 = dict(zip(tt,lt))
dt01_41 = dict((('a',1),('b',2)))
#dict(**kwargs)
# Not available here {} Instead of dict()dt01_5 = dict(a=1,b=2)
#fromkeys(iterable, value=None, /), Use iteratible objects to create dictionaries that specify default values dt01_6 = dict.fromkeys(tt,0)
#clear(…)
dt02 = dict(a=1,b=2)
dt02.clear()
#copy(…)
dt03 = dict(a=1,b=2)
dt = dt03.copy()
#get(self, key, default=None, /)
dt04 = dict(a=1,b=2)
dt = dt04.get('a')
#items(…)
dt05 = dict(a=1,b=2)
dt = dt05.items()
#keys(…)
dt06 = dict(a=1,b=2)
dt = dt06.keys()
#values(…)
dt07 = dict(a=1,b=2)
dt = dt07.values()
#pop(k[,d])
dt08 = dict(a=1,b=2)
dt = dt08.pop('c','wrong')
#popitem(self, /)
dt09 = dict(a=1,b=2)
dt = dt09.popitem()
#setdefault(self, key, default=None, /)
dt10 = dict(a=1,b=2)
dt = dt10.setdefault('a','3')
#update(…)
dt11 = dict(a=1,b=2)
dt11_1 = dict(a=0,b=1,c=2)
dt11.update(dt11_1)
dt12 = dict(a=1,b=2)
dt = dt12['a']
dt13 = dict(a=1,b=2)
dt13['c'] = 3
dt14 = dict(a=1,b=2)
del dt14['a']
del dt14
dt15 = dict(a=1,b=2,c=3)
len(dt15)
min(dt15)
max(dt15)