I have two list dictionaries'
L1 = [{'y': 3L, 'x': u'2016-10'}, {'y': 3L, 'x': u'2016-12'}]
L2 = [{'y': 0, 'x': '2016-12'}, {'y': 0, 'x': '2016-11'}, {'y': 0, 'x': '2016-10'}]
Compare these two list with value of x
.
Final out put like:
output= [{'y': 3L, 'x': '2016-12'}, {'y': 0, 'x': '2016-11'}, {'y': 3L, 'x': '2016-10'}]
How can i do it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…