def dayup(df):
dayup = 1
for i in range(365):
if i % 7 in [6,0]:
dayup = dayup*0.99
else:
dayup = dayup*(1+df)
return dayup
dayfacter = 0.01
while dayup(dayfacter) < 37.78:
dayfacter = dayfacter+0.001
print('工作日努力参数为{:.3f}才能超过全年工作的人'.format(dayfacter))
python学习之天天向上代码
最新推荐文章于 2024-07-08 10:56:43 发布