摘要: '''#def fib(n,a=1,b=1): if n==1 or n==2: return b elif n>=2: a,b=b,a+b return fib(n-1,a,b)ret=fib(10)print(ret)''''''#def fib(n): a,b=(1,1) while n>2: 阅读全文
posted @ 2020-07-14 09:48 diracy 阅读(123) 评论(0) 推荐(0)
摘要: import osdef show_file(path): name_list=os.listdir(path) s=0 for name in name_list: abs_path=os.path.join(path,name) if os.path.isfile(abs_path): prin 阅读全文
posted @ 2020-07-14 09:47 diracy 阅读(225) 评论(0) 推荐(0)