【解决方案1】:

也许这对你有用:

list_1 = [1, 2, 3, 4, 5]
list_2 = [2, 4]
list_2 = [x for x in list_1 if x not in list_2]
list_2

输出:

[1, 3, 5]

【讨论】: