Commit 5a696550 by BellCodeEditor

save project

parent 8c6aa354
Showing with 3 additions and 2 deletions
......@@ -9,8 +9,8 @@ hy=Hero(250,23,"后羿")
def upgrade(name):
name.level=name.level+1
name.hp=name.hp+1
name.attack=name.attack+1
name.hp=name.hp+50
name.attack=name.attack+4
upgrade(hy)
upgrade(hy)
print(hy.hp)
\ No newline at end of file
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