Commit 1acfdab0 by BellCodeEditor

auto save

parent 55347fa9
Showing with 11 additions and 0 deletions
class Hero: class Hero:
def __init__(self,name,hp,attack): def __init__(self,name,hp,attack):
self.level=1 self.level=1
......
def f(n):
if n == 1:
value = 1
else:
value = n * f(n-1)
return value
result = f(5)
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