111,115
社区成员
发帖
与我相关
我的任务
分享int[] numbers=new int[]{123,321,456,123,456,123456,132,4561,348,131,4513,465134,124,1513,45,121};
List<int> list=new List<int>(numbers);
for(int i=0;i<list.Length;i++){
if(list.LastIndexOf(list[i])!=i){
list.RemoveAt(i);
i--;
}
}