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(dayfactor) dayfactor +=0.001 print("年终值是:{:.3f}.".format(a))
标签:tor col range blog 1.0 bsp pre pos turn
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(dayfactor) dayfactor +=0.001 print("年终值是:{:.3f}.".format(a))
标签:tor col range blog 1.0 bsp pre pos turn
原文地址:https://www.cnblogs.com/zsny/p/8719154.html