随笔分类 - 6.0001
摘要:# Problem Set 2, hangman.py # Name: # Collaborators: # Time spent: # Hangman Game # # Helper code # You don't need to understand this helper code, # b
阅读全文
摘要:bisection search 有递归,无递归两种写法 def achieve_down_payment(num, annual_salary, portion_down_payment): current_savings = 0 month =1 while ((current_savings
阅读全文
摘要: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
阅读全文
摘要:# 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
阅读全文

浙公网安备 33010602011771号