摘要: 1、斐波那契数列 题目描述 大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项(从0开始,第0项为0)。 n<=39 class Solution: def Fibonacci(self, n): # write code here if n==0: return 0 if 阅读全文
posted @ 2020-04-24 10:57 柠檬不酸i 阅读(117) 评论(0) 推荐(0) 编辑