I have an array [1,2,3,4,5,6,1,2,3,4]
and I would like to return 5, 6.
If I use set(my_array)
I get 1,2,3,4,5,6
. Is there a pythonic way to do this. Thanks.
Any help is much appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…