python 字典 setdefault()和get()方法比较详解 dict.setdefault(key,default=None)-->有key获取值,否则设置key:default,并返回default,default默认值 方法比较