Python 假设某大学生借款1000元日息为1%每日复利一次计算一年后需要还款的金额
import math n = 1000 * math.pow(1.01,365) print(n)
日息1%够高的了。1000 * (1 + 0.01) ** 365