下面为银行存款计算程序,假设存款利率每年都是0.03,小明有1000元,求存满5年后的总金额,下面Python代码空白处应该填入哪个选项?( )
def interest(total, years, rate=0.03):
for i in range(years):
total *= ( )
return total
print(interest(1000, 5))
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析