a=1for i in range(9): b=(a+2)*2 a=bprint("这本书一共{}页。".format(a))今天模拟考试正好考到这题,这是我自己的答案,就顺便回答一下,如果有错误还请指出。
i=1x=1while x<10: i = (i+2)*2 print(i) x+=1