牛客网网址 leetcode网址 思路 dp思想 代码 class Solution: def Fibonacci(self, n): # write code here a,b = 0,1 for i in range(n): a,b = b,a+b return a