以下代码段仅将最新值附加到列表中。如何附加完整的值集?
seq = [0, 1] for n in range(2, 7): X = 2*seq[n - 1] + seq[n - 2] seq.append(X) for num in seq: print(seq[num])
for num in range(0,len(seq)): print(seq[num])