学习一下。
# code #1
def filie(x):
a,b,t=1,1,0
if x==1 or x==2: return 1
while t<x-2:
a,b,t,=b,a+b,t+1
return b
n = input("place input a integer:")
for i in range(1,n):
print filie(i)
# code #2
a,b,i=1,1,0
n=input()
while i<n:
a,b,i=b,a+b,i+1
print a