import collections as con #默认字典数据类型(参数填数据类型) dic = con.defaultdict(list) dic['a'].append(55) print(dic,'defaultdict')