#!/usr/bin/python
x = ['d','d','a','b','c']
y = ['d','a']
z = []
for m in x:
if m not in y:
z.append(m)
print(z)
Python List 删除 另一个list里面的元素
猜你喜欢
转载自blog.csdn.net/qq_36666115/article/details/105481224
今日推荐
周排行