python 合并多个dict
a = {"a":1,"b":'2',"c":"3","d":"4",'e':"5"}b= {"a":"11*","b":"22*"}c = {"a":"111","c":"333","d":"444"}d = {"b":'2222',"d":"4444"}#a的key必须包含b,c,d所有的key 即b.keys()∈a.keys()、c.keys()∈a.keys() ...def creay_dic(lt:dict,*args): for itm in args:
原创
2021-05-16 10:39:25 ·
156 阅读 ·
0 评论