Commit c4af7d59 by BellCodeEditor

auto save

parent 4ffbd7bd
Showing with 3 additions and 1 deletions
...@@ -11,10 +11,12 @@ class Here: ...@@ -11,10 +11,12 @@ class Here:
self.attack=self.attack+4 self.attack=self.attack+4
houyi=Here("后羿",240,23) houyi=Here("后羿",240,23)
houyi.upgrade()
houyi.upgrade() houyi.upgrade()
print("等级为:",houyi.level) print("等级为:",houyi.level)
print("血量为",houyi.hp) print("血量为",houyi.hp)
print("攻击力为",attack) 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