p=1 print("第五天吃之前就剩1个桃子") for i in range(4,0,-1): p=(p+1)*2 print("第{}天吃之前还有{}桃子".format(i,p)) print("第1天共有{}".format(p))