马上注册,结交更多好友,享用更多功能,让你轻松玩转小K网。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
之前只用花呗,后来觉得信用卡更方便,打算办个信用卡然后把花呗停掉,结果现在花呗信用卡一起用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()
复制代码
|