Sum / Average an attribute of a list of objects

前端 未结 0 1909
终归单人心
终归单人心 2020-12-23 01:38

Lets say I have class C which has attribute a.

What is the best way to get the sum of a from a list of C in Pytho

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