摘要: 斐波那契函数 1、迭代 def fab_1(n): result1 = 1 result2 = 1 m=1 if n<1: print("错误") while m <= n : if m < 3: result1 m+=1 elif m >= 3 : result = result1+result2 阅读全文
posted @ 2020-06-05 12:58 逆袭小白 阅读(466) 评论(0) 推荐(0) 编辑