Commit c74c0095 by BellCodeEditor

save project

parent dc5bffae
Showing with 2 additions and 2 deletions
...@@ -10,8 +10,8 @@ class Hero: ...@@ -10,8 +10,8 @@ class Hero:
self.attack=self.attack+4 self.attack=self.attack+4
houyi=Hero("亚瑟",240,23) houyi=Hero("后羿",240,23)
houyi.upgrade() houyi.upgrade()
print("等级",houyi.level) print("等级",houyi.level)
print("血",houyi.hp) print("血",houyi.hp)
print("攻击力:",houyi.attac) print("攻击力:",houyi.attack)
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