Commit 84eab2f1 by BellCodeEditor

save project

parent bc68f089
Showing with 10 additions and 2 deletions
...@@ -9,4 +9,12 @@ houyi=("后羿",240,23) ...@@ -9,4 +9,12 @@ houyi=("后羿",240,23)
k=Hero("凯",240,23) k=Hero("凯",240,23)
print("yase的血量为:",yase.hp) print("yase的血量为:",yase.hp)
print("yase的攻击为:",yase.attack) print("yase的攻击为:",yase.attack)
\ No newline at end of file def upgrade():
yase.level = yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
upgrade()
upgrade()
print("升级连词后,亚瑟的血量为:"yase.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