标签:style blog ar color sp on div log ef
# 斐波拉切列 def fblq(size): if(size < 1): return "parm is not ture" else: a = 0 b = 1 c = 0 d = 0 while c < size: print(b) d = a+b a = b b = d c= c+1 fblq(10) # 斐波拉切列 def fblq(size): if(size < 1): return "parm is not ture" else: a,b,c =0,1,0 while c < size: print(b) a,b,c= b,a+b,c+1 fblq(10)
python语法还真是优雅。
标签:style blog ar color sp on div log ef
原文地址:http://www.cnblogs.com/bin-pureLife/p/4154008.html