Sum a decimal attribute of a list of objects in python

后端 未结 0 1771
天涯浪人
天涯浪人 2020-12-24 15:39

I have a Dictionary of users with a list of payments. The Payment class has an attribute Amount which I want to sum it up for every single user:

Dict = {
 &qu         


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