s = set(['Adam', 'Lisa', 'Paul'])L = ['Adam', 'Lisa', 'Bart', 'Paul']i=0while L[i] in s: s.remove(L[i]) i = i + 1s.add(L[i])print s 查看完整描述