Commit aebd0e01 by BellCodeEditor

save project

parent 7ca54426
Showing with 1 additions and 3 deletions
...@@ -11,9 +11,7 @@ def upgrade(): ...@@ -11,9 +11,7 @@ def upgrade():
yase.level=yase.level+1 yase.level=yase.level+1
yase.hp = yase.hp+50 yase.hp = yase.hp+50
yase.attack =yase.attack+4 yase.attack =yase.attack+4
yase=Hero("垭瑟",300,200) yase=Hero("垭瑟",300,200)
print("垭瑟的血量为:",yase.hp) print("垭瑟的血量为:",yase.hp)
upgrade() yase.Upgrade().
upgrade()
print("升级两次后,后羿的血量为:",yase.hp) print("升级两次后,后羿的血量为:",yase.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