Commit 3a180669 by BellCodeEditor

save project

parent 374b863e
Showing with 5 additions and 0 deletions
...@@ -11,6 +11,11 @@ def upgrade(): ...@@ -11,6 +11,11 @@ def upgrade():
yase.hp=yase.hp=50 yase.hp=yase.hp=50
yase.attack=yase.attack+4 yase.attack=yase.attack+4
yase=Hero("亚瑟"30020)
yase.upgrade()
print("等级为:",yase.level)
print("血量为:",yase.hp)
print("攻击力:",yase.attack)
upgrade() upgrade()
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