Commit 32af6cde by BellCodeEditor

save project

parent c3965334
Showing with 3 additions and 13 deletions
......@@ -4,18 +4,8 @@ def func(n):
if n <=2:
return 1
elif n >=2:
func=func(n-1)+func(n-2)
a=func(n-1)+func(n-2)
return a
print(func(15)) #调用函数并打印结果
print(func(10)) #调用函数并打印结果
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment