- 📚 相关推荐文章
- 厨艺烹饪知识大全 推荐
- 拍打操 推荐
- 易经风水-财富局 推荐
- 小学数学课堂小游戏 推荐
- 毛皮鞣制方法 推荐

用python计算你的钱放在银行里多少年才能翻倍
money = float(input("please input you want to double the money:")) double_money = money * 2 year = 0 interest = float(input("please input interest:")) interest_money = 0 while money <= double_money: interest_money = money * interest money += interest_money year += 1 print(f"generate interest {interest_money} in year {year}") print(f"your money need {year} year to double it...")
👁️ 阅读量:0
© 版权声明:本文《用python计算你的钱放在银行里多少年才能翻倍》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686645718a314696.html。