經安全檢測,此網站為安全網站,請放心前往原始網址!

How to find duplicate elements in array using for loop in python like c/c++? - Stack Overflow

i have a list with duplicate elements: In python: list_a=[1,2,3,5,6,7,5,2] tmp=[] for i in list_a: if tmp.__contains__(i): print i else: tmp.append(i) i have us...

stackoverflow.com

網址安全性掃描由 google 提供