3
如何从列表中删除链接列表b中包含链接值的所有字典?Python - 从列表中删除字典,如果键值等于
a = [{'link':'http://example.com/1/', 'id': 1}, {'link':'http://example.com/2/', 'id': 2}]
b = ['http://example.com/2/', 'http://example.com/3/']
一个应该是:
a = [{'link':'http://example.com/1/', 'id': 1}]