Commit 06837c64 by BellCodeEditor

save project

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