Home > other >  Python array processing
Python array processing

Time:05-01

Python processing array object, how to obtain c array

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)
  • Related