题解 | #统计每个月兔子的总数#
统计每个月兔子的总数
http://www.nowcoder.com/practice/1221ec77125d4370833fd3ad5ba72395
python3
while True: try: num = int(input()) i,j = 1,1 if num>2: for _ in range(2,num): i,j = i+j,i print(i) except: break
统计每个月兔子的总数
http://www.nowcoder.com/practice/1221ec77125d4370833fd3ad5ba72395
python3
while True: try: num = int(input()) i,j = 1,1 if num>2: for _ in range(2,num): i,j = i+j,i print(i) except: break
相关推荐