题解 | #统计每个月兔子的总数#
统计每个月兔子的总数
http://www.nowcoder.com/practice/1221ec77125d4370833fd3ad5ba72395
#python版斐波那契数列 while True: try: a = 0 b = 1 month = int(input()) if month < 3: print(1) else: for i in range(month): c = a + b a = b b = c print(a) except: break
