a = ['a', 'b', 'c', 'd']
b = ['a', 'b', 'x', 'y']
c = a+b
print list(set(c))
a = [1, 2, 3, 4, 5, 1, 2, 3]
print list(set(a))
list和set
最新推荐文章于 2021-12-24 10:57:09 发布
a = ['a', 'b', 'c', 'd']
b = ['a', 'b', 'x', 'y']
c = a+b
print list(set(c))
a = [1, 2, 3, 4, 5, 1, 2, 3]
print list(set(a))