第1关:按揭贷款——定义抽象类
预期输出:
The Mortgage is None, Loan is 100000, Months is 36, Rate is 0.01, Monthly payment is 3064.90
The Mortgage is None, Loan is 100000, Months is 120, Rate is 0.01, Monthly payment is 1135.48
def findPayment(loan, r, m):
# 请在此添加代码,补全函数findPayment
#-----------Begin----------
return loan