标签:class 斐波那契数 UNC 斐波那契 highlight ret temp 数列 算法
1、冒泡排序
li=[33,2,10,5,123,412,41,41565,12,33,11]
for j in range(1,len(li)):
for i in range(len(li) - j):
if li[i] > li[i+1]:
temp=li[i]
li[i]=li[i+1]
li[i+1]=temp
print(li)
2、斐波那契数列
def func1(k1,k2):
if k1 > 10000:
return
print(k1)
k3=k1 + k2
func1(k2,k3)
func1(0,1)
标签:class 斐波那契数 UNC 斐波那契 highlight ret temp 数列 算法
原文地址:https://www.cnblogs.com/panwenbin-logs/p/10786150.html