Commit 2ff09f41 by BellCodeEditor

save project

parent 18035261
Showing with 1 additions and 1 deletions
...@@ -10,7 +10,7 @@ class Hero: ...@@ -10,7 +10,7 @@ class Hero:
self.level=self.level+1 self.level=self.level+1
self.hp=self.hp+50 self.hp=self.hp+50
self.attack==self.attack+10 self.attack==self.attack+10
houyi=Hero("后羿",300,20) houyi=Hero("后羿",240,24)
houyi.upgrade() houyi.upgrade()
print("等级为",houyi.level) print("等级为",houyi.level)
print("血量为",houyi.hp) print("血量为",houyi.hp)
......
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