Python代码这么写有什么错误?
s = set(['Adam','Lisa','Paul']) L = ['Adam','Lisa','Bart','Paul'] for x in L: for y in s: if x==y: s.add(x) else : s.remove(x) print (s)
s = set(['Adam','Lisa','Paul']) L = ['Adam','Lisa','Bart','Paul'] for x in L: for y in s: if x==y: s.add(x) else : s.remove(x) print (s)
2017-02-27
举报