标签:python
li = [0,1,1,2,3,5,8] def func(arg1,arg2): if arg1 == 0: print (arg1,arg2) arg3 = arg1+arg2 print (arg3) if arg1 <=1000: func(arg2,arg3) func(0,1)
求n,m,m+n 数列递归
C:\Users\pcdog\AppData\Local\Programs\Python\Python35\python.exe
C:/Users/pcdog/PycharmProjects/untitled/shulie.py
0 1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
Process finished with exit code 0
本文出自 “于昊(Pcdog)的博客” 博客,请务必保留此出处http://433266.blog.51cto.com/423266/1740905
标签:python
原文地址:http://433266.blog.51cto.com/423266/1740905