从列表中删除重复项,并带有多个列表
我有一个带有多个列表的列表。该列表看起来像这样:
[[[名称,过程],[Name2,Process],[name,Process1]]
我正在尝试删除具有重复名称的列表(允许重复的过程),我不知道如何我迭代所有列表的第一个索引以删除重复项。
有人可以帮忙吗?
多谢
I have a list with multiple list. The list looks something like that:
[[ Name , Process], [Name2, Process] , [Name, Process1]]
I'm trying to remove Lists with a duplicate Name (duplicate Processes are allowed) and i don't know how i iterate through the first index of all Lists to remove the duplicates.
Can somebody help?
Thanks alot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于输入和输出要求是什么,我认为这可能有效:
输出:
Making several assumptions about what the input and output requirements are, I think this may work:
Output: