i = [2,3,4]
interest = [1.08,1.0824,1.09,1.095]
yr2 = (interest[0] * interest[1])**(1./i[0]) - 1.
yr3 = (interest[0] * interest[1] * interest[2])**(1./i[1]) - 1.
yr4 = (interest[0] * interest[1] * interest[2] * interest[3])**(1./i[2]) - 1.
我声明了2个数组(如上),但我希望以以下格式显示我的答案:
yield = [yr2,yr3,yr4]
结果
相关问题 更多 >
编程相关推荐