擅长:python、mysql、java
<p>如果我理解正确的话,您只需要出现在current中而没有出现在prev中的项。你知道吗</p>
<p>像这样的东西应该管用</p>
<pre><code> prev_names = set(map(lambda x: x['name'], prev))
new_items = [item for item in current if item['name'] not in prev_names]
new_items # [{'id': 3, 'name': 'e'}, {'id': 4, 'name': 'f'}]
</code></pre>