摘要: PAYING THE MINIMUM 计算每月信用卡最低还款额及剩余应还款额 1 balance = 4842 #还款额 2 annualInterestRate = 0.2 #年利息比率 3 monthlyPaymentRate = 0.04 #每月最低还款比率 4 total = 0 5 #循环... 阅读全文
posted @ 2015-06-27 22:12 honoka 阅读(494) 评论(0) 推荐(0) 编辑
摘要: counting vowels: 计算字符串中含有元音字母aeiou的数量1 char = 'azcbobobegghakl'2 num = 03 #利用in方法直接查找字符串char中含有的元音字母数量4 for char in 'aeiou':5 num += 16 print ("Nu... 阅读全文
posted @ 2015-06-27 21:39 honoka 阅读(612) 评论(0) 推荐(0) 编辑