defaultdict是普通字典dict的一个子类。通过collections库的defaultdict()方法创建。defaultdict()需要传入的参数为 类名。(type类型)首先,以int类 作为参数传入为例,