Python - Filtering a list of tuples with out using dict

前端 未结 0 723
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 04:58

How to make the following code without using dict

print(tuple(map(lambda x: (x[0], x[1] + dict(factors).get(x[0], 0)), grade)))

Parameters:

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