谁能帮我看看这个哪里错了?显示运行成功输出错误
s = set(['adam', 'lisa', 'paul'])
L = ['adam', 'lisa', 'bart', 'paul']
for item in L:
if item in s:
continue
else:
s.add(item)
print s
s = set(['adam', 'lisa', 'paul'])
L = ['adam', 'lisa', 'bart', 'paul']
for item in L:
if item in s:
continue
else:
s.add(item)
print s
2020-07-29
举报