refer to code:
..
a=[{'a':1, 'b':3}, {'a':2, 'b':4}]
b=[{'a':3, 'b':3}, {'a':2, 'b':4}]
a.extend(b)
[dict(t) for t in {tuple(d.items()) for d in a}]
>> [{'a': 1, 'b': 3}, {'a': 2, 'b': 4}, {'a': 3, 'b': 3}]
..
Thank you.
www.marearts.com
refer to code:
..
..
Thank you.
www.marearts.com
No comments:
Post a Comment