我现在有两组 list,每组 list 中大概都有 1w 个 dict.结构类似这样的[{},{},{},{},{}]
两组 list 中的 dict 数量是相同的,少部分有差异,不同 list 中的 dict 靠 dict 的 id 来确定匹配 dict.
我想比较下这两组 list 中对应 dict 的 key 对应的 value 值的差异.
目前用两个 for 循环来实现感觉方法很笨,效率实在有点低,应该不是最佳实践.
各位大佬有更好的建议吗?
我现在有两组 list,每组 list 中大概都有 1w 个 dict.结构类似这样的[{},{},{},{},{}]
两组 list 中的 dict 数量是相同的,少部分有差异,不同 list 中的 dict 靠 dict 的 id 来确定匹配 dict.
我想比较下这两组 list 中对应 dict 的 key 对应的 value 值的差异.
目前用两个 for 循环来实现感觉方法很笨,效率实在有点低,应该不是最佳实践.
各位大佬有更好的建议吗?