Commit 7cb7140d by BellCodeEditor

save project

parent 14c30b23
Showing with 7 additions and 5 deletions
......@@ -5,8 +5,9 @@ class hero:
self.hp=hp
self.attack=attack
def upgrade():
self.level +=1
self.hp +=50
self.attack +=4
yase=hero("垭瑟",300,20)
houyi=hero("后羿",250,23)
yase.level +=1
yase.hp +=50
yase.attack +=4
yase=hero("垭瑟",300,20)
houyi=hero("后羿",250,23)
print()
\ No newline at end of file
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