Commit 5df5fd50 by BellCodeEditor

save project

parent fa78ab85
Showing with 3 additions and 3 deletions
......@@ -5,9 +5,9 @@ class Hero():
n.attck=attck
def up(n):
n.level=level+1
n.hp=hp+2
n.attck=attck+3
n.level=n.level+1
n.hp=n.hp+2
n.attck=n.attck+3
Tom=Hero(1,9,6)
Tom.up()
print(Tom.level)
......
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