Commit 1c2ff5ac by BellCodeEditor

save project

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