Commit 56226565 by BellCodeEditor

save project

parent 4319cf2c
Showing with 4 additions and 2 deletions
...@@ -14,4 +14,6 @@ yase = Hero('亚瑟',300,20) ...@@ -14,4 +14,6 @@ yase = Hero('亚瑟',300,20)
houyi = Hero('后羿',250,23) houyi = Hero('后羿',250,23)
yase.upgrade() yase.upgrade()
houyi.upgrade() houyi.upgrade()
print(yase.attack,yase.hp,yase.level) print('亚瑟的等级是:',yase.level)
\ No newline at end of file print('亚瑟的血量是:',yase.hp)
print('亚瑟的等级是:',yase.attack)
\ 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