Commit 06837c64 by BellCodeEditor

save project

parent d83aff4d
Showing with 4 additions and 7 deletions
...@@ -9,10 +9,8 @@ def upgrade(): ...@@ -9,10 +9,8 @@ def upgrade():
yase.hp=yase.hp+50 yase.hp=yase.hp+50
yase.attack=yase.attack+4 yase.attack=yase.attack+4
yase=hero("亚瑟",300,20)
houyi=hero("后羿",240,23) houyi=hero("后羿",240,23)
print("亚瑟的初始血量为:",yase.hp) houyi.upgrade()
upgrade() print("等级为:"houyi.level
upgrade() print("血量为:"houyi.hp
print("升级2次后,亚瑟的血量为:"yase.hp print("攻击力为:"houyi.attack
\ 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