参数形式
- class dict(**kwarg)
- class dict(mapping, **kwarg)
- class dict(iterable, **kwarg)
Manual
Create a new dictionary. The dict object is the dictionary class. See dict and Mapping Types — dict for documentation about this class.
For other containers see the built-in list, set, and tuple classes, as well as the collections module.
直译
创建一个新的字典。dict对象归属字典类,详见映射类型—字典。对于其他容器类,详见内建list、set和tuple类,同样也有collections模块。
实例
# 多参数
>>> a = dict(one=1, two=