Commit 78a52f3c by BellCodeEditor

auto save

parent ba91ad49
Showing with 17 additions and 5 deletions
def fun(): '''def fun(n):
fun() if n==1:
fun() print(n,"从前有座山,山上有个庙,庙里有个小和尚在看报,报里写的是:")
print("从前有座山,山上有个庙,庙里有个小和尚在看报")
\ No newline at end of file else:
print(n,"从前有座山,山上有个庙,庙里有个小和尚在看报,报里写的是:")
fun(n-1)
fun(5)
'''
def fun(n):
if n==10:
return 1
else:
a=(fun(n+1)+1)*2
return a
a=fun(1)
print(a)
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