retirement.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:MITx-6.00.1x-Introduction-to-Computer-Science-and-Programming-Using-Python 作者: tiagomestreteixeira 项目源码 文件源码
def displayRetirementWithMonthsAndRates(monthlies, rates, terms):
    plt.figure('retireBoth')
    plt.clf()
    plt.xlim(30 * 12, 40 * 12)
    for monthly in monthlies:
        for rate in rates:
            xvals, yvals = retire(monthly, rate, terms)
            plt.plot(xvals, yvals,
                     label='retire:' + str(monthly) + ':' + str(int(rate * 100)))
            plt.legend(loc='upper left')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号