标签: python spyder
a=[] n=int(input('how many element you enter')) for i in range(0,n): x=int(input('enter')) a.append(x) print (a) for i in range(0,n-1): for j in range(i,n-1): if a[i]==abs(a[j+1]): print ('',a[i],a[j+1])