l1 = [183,0,1,2,-184,367] num = [] for i in range (0,len(l1)): for l in range (i+1,len(l1)): if l1[i]+l1[l]==183:
num.append((l1[i],l1[l]))
sum = set(num) print(sum)
//set():去重
l1 = [183,0,1,2,-184,367] num = [] for i in range (0,len(l1)): for l in range (i+1,len(l1)): if l1[i]+l1[l]==183:
num.append((l1[i],l1[l]))
sum = set(num) print(sum)
//set():去重