小K网牛逼 发表于 5 天前

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()

页: [1]
查看完整版本: Python自用【花呗模拟器】超前消费爱好者专用