Commit 71d0be5b by BellCodeEditor

save project

parent c44573a5
Showing with 1 additions and 1 deletions
...@@ -10,7 +10,7 @@ def up(self): ...@@ -10,7 +10,7 @@ def up(self):
self.attack=self.attack+4 self.attack=self.attack+4
houyi=Hero("后羿",300,20) houyi=Hero("后羿",300,20)
print("后羿hp:",houyi.hp) print("后羿hp:",houyi.hp)
up() houyi.up()
print("后羿level:",houyi.hp) print("后羿level:",houyi.hp)
print("后羿hp:",houyi.hp) print("后羿hp:",houyi.hp)
print("后羿attack:",houyi.hp) print("后羿attack:",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