摘要:
斐波那契数:即下一个数 =前一个+前前一个 方法1: 我自己写的方法: class Solution: def Fibonacci(self, n): # write code here n0 =0 n1 =1 num =1 #用于计数 while 1: num +=1 next =n0+n1 #下 阅读全文
posted @ 2021-03-08 17:12
jesse_zhao
阅读(149)
评论(0)
推荐(0)

浙公网安备 33010602011771号