摘要: # Problem Set 2, hangman.py # Name: # Collaborators: # Time spent: # Hangman Game # # Helper code # You don't need to understand this helper code, # b 阅读全文
posted @ 2020-03-11 21:57 Wiikk 阅读(654) 评论(0) 推荐(0) 编辑
摘要: bisection search 有递归,无递归两种写法 def achieve_down_payment(num, annual_salary, portion_down_payment): current_savings = 0 month =1 while ((current_savings 阅读全文
posted @ 2020-03-06 21:07 Wiikk 阅读(257) 评论(0) 推荐(0) 编辑
摘要: import math annual_salary = int(input('Enter your annual salary:')) portion_salary = float(input('Enter the percent of your salary to save, as a decim 阅读全文
posted @ 2020-03-06 17:12 Wiikk 阅读(173) 评论(0) 推荐(0) 编辑
摘要: # House Hunting # total_cost: the cost of your dream home # portion_down_payment: 预付款 assume 0.25 # current_savings: start with 0 # r: annual return o 阅读全文
posted @ 2020-03-06 16:21 Wiikk 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Assignment:Write a pro... 阅读全文
posted @ 2020-03-04 14:29 Wiikk 阅读(201) 评论(0) 推荐(0) 编辑