天天向上的力量,grit:坚毅
# 一年中工作日每天成长多少休息日下降1%,可以达到365天每天都成长1%的效果# 365天每天都成长1%的效果为37.78
def dayup(df):
day = 1
for i in range(365):
if i % 7 in :
day *= (1 - 0.01)
else:
day *= (1 + df)
return day
dayfactor = 0.01
day_compare = round(1.01 ** 365, 5)
print(day_compare)
while round(dayup(dayfactor), 5) < round(day_compare, 5):
dayfactor += 0.001
print('工作日每天上升:\033
页:
[1]