2018年4月4日

3.12DAYUP

摘要: def dayUP(df): dayup=1.0 for i in range(365): if i % 7 not in [6,5,0]: dayup=dayup*(1+df) return dayup dayfactor=0.001 a=0 while dayfactor<=0.010: a=dayUP(dayfacto... 阅读全文

posted @ 2018-04-04 20:21 hbuzhangshuning 阅读(113) 评论(0) 推荐(0) 编辑

快乐数字

摘要: num=eval(input()) while num!=1: num=pow((num//100),2)+pow((num%100)//10,2)+pow((num%10),2) print("happy") else: print("输入格式错误") 阅读全文

posted @ 2018-04-04 19:25 hbuzhangshuning 阅读(260) 评论(0) 推荐(0) 编辑

2的N次

摘要: import math n=eval(input()) a=math.pow(2,n) print(a) 阅读全文

posted @ 2018-04-04 19:16 hbuzhangshuning 阅读(126) 评论(0) 推荐(0) 编辑

导航