字典列表去重,因为可变对象不可以哈希,所以这个样子搞:[dict(t) for t in set([tuple(d.items()) for d in li])]

NoSuchKey

猜你喜欢

转载自www.cnblogs.com/DDBD/p/13166913.html