Commit 141ea7bb by BellCodeEditor

save project

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