📅  最后修改于: 2022-03-11 14:56:57.583000             🧑  作者: Mango
代码示例2
class Calculator(AdvancedArithmetic):
def divisorSum(self, n):
temp = []
for i in range(1, n+1):
if n%i == 0:
temp.append(i)
return sum(temp)