data =[{'a':[{0:['hello','what']},{1:['nihao','大家好']},{2:['aa','bb']}]},{'b':[{0:['hello','shenme']},{1:['what','yyy']},{2:['rrr','aa']},{3:['aa','ggg']}]},{'c':[{0:['大家好']},{1:['hello','uuu']}]}]
data為串列中套字典,字典中值為串列的組合;
比如a字典中'hello'在b字典也有,則回傳{'ab_hello':[0,0]},'hello'在c字典也有,則回傳{'ac_hello':[0,1]}
最侄訓傳的應該是[{'ab_hello':[0,0]},{'ac_hello':[0,1]},{'bc_hello':[0,1]......}]
就是兩兩比較相同項,并給出對應的key值;
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/144330.html
下一篇:術語表
