CodePudding user response:
a=[{' shunxu ', 33.0 'bianhao' : 2.0, 'chuanbo: 10.0,}, {' shunxu', 17.0 'bianhao' : 6.0, 'chuanbo: 6.0,}]
B=[{' shunxu ', 17.0 'bay: 5, "chuanbo" : 6.0,}, {' shunxu', 33.0 'bay: 15,' chuanbo: 6.0,}]
[[i. etdefault (' bay, j [' bay ']) for j b in the if I [' shunxu]==j [' shunxu]] for I in a]
Print (a)