如何从具有键和值对的csv中删除重复的行?

时间:2018-10-12 18:03:14

标签: java csv

test.csv示例为:

2176 = 150MG,2178 = I01,1011 = 1000210,1012 = 1,1636 = KG,1638 =有效

2176 = 150MG,2178 = I02,1011 = 1034669,1012 = 2,1636 = KG,1638 =有效

2176 = 200MG,2178 = I03,1011 = 1034670,1012 = 3,1636 = KG,1638 =有效

2176 = 150MG,2178 = I01,1011 = 1000210,1012 = 1,1636 = KG,1638 =有效

2176 = 277MG。 2178 = I05,1011 = 1000535,1012 = 5,1636 = KG,1638 =有效

2176 = 200MG,2178 = I03,1011 = 1034670,1012 = 3,1636 = KG,1638 =有效

预期结果:

2176 = 150MG,2178 = I01,1011 = 1000210,1012 = 1,1636 = KG,1638 =有效

2176 = 150MG,2178 = I02,1011 = 1034669,1012 = 2,1636 = KG,1638 =有效

2176 = 200MG,2178 = I03,1011 = 1034670,1012 = 3,1636 = KG,1638 =有效

2176 = 277MG。 2178 = I05,1011 = 1000535,1012 = 5,1636 = KG,1638 =有效

0 个答案:

没有答案