返回列表 发布新帖

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

1061 0
小K网牛逼 发表于 5 小时前 | 查看全部 阅读模式 <

马上注册,结交更多好友,享用更多功能,让你轻松玩转小K网。

您需要 登录 才可以下载或查看,没有账号?立即注册 微信登录

×
之前只用花呗,后来觉得信用卡更方便,打算办个信用卡然后把花呗停掉,结果现在花呗信用卡一起用QAQ
============
安卓手机直接Termux加载超级方便
  1. print("---### 欢迎使用花呗模拟器 ###---")
  2. borrow = input("\n请输入借款金额:")
  3. installments = input("\n请选择分期类型:"
  4.         "\n\n1.三期  2.六期  3.九期  4.十二期\n\n")
  5. ins = int(installments)
  6. if ins == 1:
  7.         three = int(borrow) / 3
  8.         lixi = round(three,2) * 0.025
  9.         money = round(lixi,2) + round(three,2)
  10.         total = round(int(borrow) + round(lixi*3,2),2)
  11.         print("\n若分三期,每月应还:",round(money,2),"元")
  12.         print("利息:",round(lixi,2),"元/月")
  13.         print("总共需还:",total,"元")
  14. elif ins == 2:
  15.         six = int(borrow) / 6
  16.         lixi = round(six,2) * 0.045      
  17.         money = round(lixi,2) + round(six,2)
  18.         total = round(int(borrow) + round(lixi*6,2),2)
  19.         print("\n若分六期,每月应还:",round(money,2),"元")
  20.         print("利息:",round(lixi,2),"元/月")
  21.         print("总共需还:",total,"元")
  22. elif ins == 3:
  23.         nine = int(borrow) / 9
  24.         lixi = round(nine,2) * 0.065
  25.         money = round(lixi,2) + round(nine,2)
  26.         total = round(int(borrow) + round(lixi*9,2),2)        
  27.         print("\n若分九期,每月应还:",round(money,2),"元")
  28.         print("利息:",round(lixi,2),"元/月")
  29.         print("总共需还:",total,"元")
  30. elif ins == 4:
  31.         twelve = int(borrow) / 12
  32.         lixi = round(twelve,2) * 0.088
  33.         money = round(lixi,2) + round(twelve,2)
  34.         total = round(int(borrow) + round(lixi*12,2),2)        
  35.         print("\n若分十二期,每月应还:",round(money,2),"元")
  36.         print("利息:",round(lixi,2),"元/月")
  37.         print("总共需还:",total,"元")
  38. else:
  39.         input("没有这个选项!")
  40. input()
复制代码


回复

您需要登录后才可以回帖 登录 | 立即注册 微信登录

本版积分规则

您需要 登录 后才可以回复,轻松玩转社区,没有帐号?立即注册
快速回复
关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表