我正在写一个小程序来比较两个列表。如果值相同,我将它们添加到listdups,如果它们不同,我将它们添加到distinct。我发现我的值有的加了,有的没有加,调试了一会儿,也不确定是什么问题。有人可以阐明一点吗?谢谢。ListgroupA=newList();ListgroupB=newList();Listdups=newList();Listdistinct=newList();groupA.Add(2);groupA.Add(24);groupA.Add(5);groupA.Add(72);groupA.Add(276);groupA.Add(42);groupA.Add(92)