class dict(object)
| dict() -> new empty dictionary
| 创建空字典
| dict(mapping) -> new dictionary initialized from a mapping object's
| (key, value) pairs
| 通过具有映射关系的对象创建字典。
| 如:dict(zip(['a','b','c'],[1,2,3]))
|
| dict(iterable) -> new dictionary initialized as if via:
| d = {}
| for k, v in iterable:
| d[k] = v
| 使用可迭代对象初始化字典。
| 例如:dict((('name','ZL'),('age',18)))
|
| dict(**kwargs) -> new dictionary initialized with the name=value pairs
| in the keyword argument list. For example: dict(one=1, two=2)
| 使用关键字参数初始化字典。例如:dict(one=1,two=2) # one和two是键,1和2是对应的值
|
| Methods defined here:
|
| __contains__(self, key, /)
| True if the dictionary has the specified key, else False.
|
| __del