最佳答案
如果我有 d=dict(zip(range(1,10),range(50,61))),我怎么能建立一个 collections.defaultdict的 dict?
defaultdict似乎唯一的参数是工厂函数,我必须初始化,然后通过原来的 d和更新的 defaultdict?