def fibs(count):
    """
    斐波那函数 后一个数字是前两个数字之和
    count 求前count的列表
    """
    if isinstance(count, int) and count >= 0:
        fibsList = [0, 1]
        if (count <= 2):
            return fibsList[count]
        else:
            for i in range(count - 2):
                num = fibsList[-2] + fibsList[-1]
                fibsList.append(num)
            return fibsList
    else:
        raise TypeError("类型错误")