def dayup(df):
day = 1
for i in range(365):
if i % 7 in [0, 6]:
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[31:1m%.3f\033[0m' % dayfactor)