per = [0,1] n = int(input()) for i in range(3, n,+1): per.append(per[-1] * 2 + per[-2]) print(per)
有帮助请采纳,有问题继续交流,你的采纳是对我回答的最大的肯定和动力