Commit 6d383fb2 by BellCodeEditor

save project

parent 15e872a5
Showing with 1 additions and 0 deletions
......@@ -2,6 +2,7 @@ class Hero:
def __init__(self,name,hp,attack):
self.name=name
self.hp=hp
self.level=1
self.attack=attack
def upgrade(self):
self.level+=1
......
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