我需要Dm所有输出的和,但不能使用sum,因为它是不可迭代的。如何求出所有输出的总和?
def diff_calc():
# create alias for all parsed arguments for cleaner code
loan_type = args.type
payment = args.payment
principal = args.Principal
periods = args.periods
interest = args.interest
if args.interest is None: