重复的项目我在这个列表下方获取从列表中<T>
string cellValue;
String cellAddress;
和采样值给出模型的列表是:
cellValue ="txt" ; CellAddres="A1";
cellValue ="txt" ; CellAddres="A2";
cellValue ="txt" ; CellAddres="A3";
cellValue ="txt" ; CellAddres="B1";
cellValue ="num" ; CellAddres="B2";
cellValue ="num" ; CellAddres="B3";
cellValue ="num1" ; CellAddres="B4";
cellValue ="txt1" ; CellAddres="C3";
我要的是创造所有重复值的列表 像后处理应该有两个列表从这个数据产生
1) cellValue ="txt" ; CellAddres="A1";
cellValue ="txt" ; CellAddres="A2";
cellValue ="txt" ; CellAddres="A3";
cellValue ="txt" ; CellAddres="B1";
2) cellValue ="num" ; CellAddres="B2";
cellValue ="num" ; CellAddres="B3";
什么'cellValue = “NUM1”'和'cellValue = “txt1中”' - 他们为什么从你期望的输出不见了? – Jamiec
我想 - 他们没有在样本列表上重复多次,所以只是跳过它们,只处理那些重复的样本。 –