class Solution:
    def jumpFloor(self, number):
        # write code here
        if number == 1:
            return 1
        a,b = 1,1
        for i in range(number):
            a,b = b,a+b
        return a
原文:https://www.cnblogs.com/wobushangwangl/p/11459411.html