第三天:论每天努力1%的重要性

    1. #DayDayUp
    2. # 1‰的力量
    3. dayup1 = pow(1.001,365)
    4. daydown1 = pow(0.999,365)
    5. print("每天努力1‰,一年后为{:.2f},每天慵1‰,一年后为{:.2f}".format(dayup1,daydown1))
    6. # 1%的力量
    7. dayup2 = pow(1.01,365)
    8. daydown2 = pow(0.99,365)
    9. print("每天努力1%,一年后为{:.2f},每天慵1%,一年后为{:.2f}".format(dayup2,daydown2))
    10. #工作日努力1%,休息日不努力
    11. dayup3 =1.0
    12. dayfactor =0.01
    13. for i in range(365):
    14. if i % 7 in [6,0]:
    15. dayup3 = dayup3*(1-dayfactor)
    16. else:
    17. dayup3 =dayup3*(1+dayfactor)
    18. print("只在工作日努力,一年后为{:.2f}".format(dayup3))
    19. print("So,每天努力1%,一年后的效果增加37倍")

    image.png

    努力吧,少年。