标签:highlight 斐波那契数 rect code return 需要 pytho ber number
# -*- coding:utf-8 -*- class Solution: def rectCover(self, number): # write code here if number==0: return 0 if number==1: return 1 if number==2: return 2 a=1 b=2 for i in range(3,number+1): c=a+b a=b b=c return c
标签:highlight 斐波那契数 rect code return 需要 pytho ber number
原文地址:https://www.cnblogs.com/cong3Z/p/12859898.html