Python 金融概念入门
Dakota Wixom
Quantitative Finance Analyst
本金(权益):你已偿还的按揭款中计入房屋价值的部分
利息支付(${IP}_{Periodic}$)
$ = RMB * R_{Periodic} $
本金支付(${PP}_{Periodic}$)
$ = {MP}_{Periodic} - {IP}_{Periodic} $
示例:
accumulator = 0
for i in range(3):
if i == 0:
accumulator = accumulator + 3
else:
accumulator = accumulator + 1
print(str(i)+": Loop value: "+str(accumulator))
0: Loop value: 3
1: Loop value: 4
2: Loop value: 5
Python 金融概念入门