stopword = ''
str = ''
for line in iter(raw_input,stopword):
str += line + '\n'
L = str.strip().split('\n')
L_set = set(L)
if len(L) == len(L_set):
print 'NO'
else:
print 'YES'
给你一个整数列表L,判断L中是否存在相同的数字, 若存在,输出YES,否则输出NO。
转载于:https://blog.51cto.com/10458754/1665069