Python自用【花呗模拟器】超前消费爱好者专用

名片

墨觉 已认证

求:

供:

已完成:

进行中:

联系方式

私信或下方留言

热度

  • 置顶到期:
  • 帖子有效期:
  • 预计价格:暂无
  • 状态: 进行中 已完成

之前只用花呗,后来觉得信用卡更方便,打算办个信用卡然后把花呗停掉,结果现在花呗信用卡一起用 QAQ
============
安卓手机直接 Termux 加载超级方便

print("---### 欢迎使用花呗模拟器 ###---")
borrow = input("\n 请输入借款金额:")
installments = input("\n 请选择分期类型:"
        "\n\n1. 三期  2. 六期  3. 九期  4. 十二期 \n\n")
ins = int(installments)
 
if ins == 1:
        three = int(borrow) / 3
        lixi = round(three,2) * 0.025
        money = round(lixi,2) + round(three,2)
        total = round(int(borrow) + round(lixi*3,2),2)
        print("\n 若分三期,每月应还:",round(money,2),"元")
        print("利息:",round(lixi,2),"元 / 月")
        print("总共需还:",total,"元")
elif ins == 2:
        six = int(borrow) / 6
        lixi = round(six,2) * 0.045       
        money = round(lixi,2) + round(six,2)
        total = round(int(borrow) + round(lixi*6,2),2)
        print("\n 若分六期,每月应还:",round(money,2),"元")
        print("利息:",round(lixi,2),"元 / 月")
        print("总共需还:",total,"元")
elif ins == 3:
        nine = int(borrow) / 9
        lixi = round(nine,2) * 0.065
        money = round(lixi,2) + round(nine,2)
        total = round(int(borrow) + round(lixi*9,2),2)        
        print("\n 若分九期,每月应还:",round(money,2),"元")
        print("利息:",round(lixi,2),"元 / 月")
        print("总共需还:",total,"元")
elif ins == 4:
        twelve = int(borrow) / 12
        lixi = round(twelve,2) * 0.088
        money = round(lixi,2) + round(twelve,2)
        total = round(int(borrow) + round(lixi*12,2),2)        
        print("\n 若分十二期,每月应还:",round(money,2),"元")
        print("利息:",round(lixi,2),"元 / 月")
        print("总共需还:",total,"元")
else:
        input("没有这个选项!")
 
input()
0 条回复 A文章作者 M管理员
😊 表情
  • 贴吧
  • 泡泡
  • 黄脸
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索