算法要求:把下面两个list:
columnNames list: ["Comment", "Comment", "Cost", "Term", "Cost"]
columnValues list: ["my comment 1", "my comment 2", "my cost 1", "my term", "my cost 2"]
变成:
columnNames list: ["Comment", "Cost", "Term"]
columnValues list: [["my comment 1", "my comment 2"], ["my cost 1", "my cost 2"], "my test"]
其中columnNames list中的元素Comment和Comment是重复的,要求新的List里面不能重复。
谢谢!