Sum of the second elements if the first element is the same in a nested list of tuples

前端 未结 0 1605
忘掉有多难
忘掉有多难 2020-12-03 09:22

I have a nested list of integer and tuples:

orders = [[1, (\'5464\', 49.96), (\'8274\', 233.82), (\'9744\', 404.55)]
          [2, (\'5464\', 99.91), (\'9744\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题