dict()
class dict(**kwarg)
class dict(mapping, **kwarg)
class dict(iterable, **kwarg)
返回初始化的字典,从一个位置参数和一个可能是空的关键字参数。
1.如果没有位置参数,产生空字典。
2.如果位置参数有,而且是映射对象,根据键值对产生一个字典。
>>> a = dict(one=1, two=2, three=3)#关键字参数
>>> b = {
'one': 1, 'two': 2, 'three': 3}
>>> c = dict(zip(['one', 'two', 'three'], [1,2,3]))
>>> d = dict([('two',2),('three',3),('one',1)])
>>> e = dict({
'two':2, 't