Python 斐波那契数列类问题
统计每个月兔子的总数
http://www.nowcoder.com/questionTerminal/1221ec77125d4370833fd3ad5ba72395
while True: try: month = int(input()) count, n1, n2 = 2, 1, 1 if month < 3: print(1) else: while count < month: nth = n1 + n2 n1 = n2 n2 = nth count += 1 print(n2) except: break