Commit 1c2ff5ac by BellCodeEditor

save project

parent 59357385
Showing with 26 additions and 6 deletions
...@@ -10,8 +10,29 @@ def upgrada(): ...@@ -10,8 +10,29 @@ def upgrada():
houyi = hero("后",240,23) houyi = hero("后",240,23)
yase = hero(“亚”,300,20) yase = hero(“后”,300,20)
print("亚血:",yase.hp) print("后血:",yase.hp)
upgrada() houyi.upgrada()
upgrada() print("等:",houyi.level)
print("2",yase.hp) print("血:",houyi.hp)
\ No newline at end of file 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