Commit b92d4322 by BellCodeEditor

save project

parent 1e9a5f1c
Showing with 7 additions and 9 deletions
def func(n): b=['袁术','夏侯墩','曹操','关羽']
if n<=2: b.remove('关羽')
return 1 a=['华雄']
elif n>2: a.append('关羽')
value = func(n-1)+func(n-2) print(a)
return value c=['颜良','文丑']
a.extend()
result = func(20)
print(result)
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