Commit 77366bdd by BellCodeEditor

save project

parent 8cff53eb
Showing with 18 additions and 0 deletions
......@@ -21,3 +21,21 @@ print("*"*50)
print("升级两次后后羿的等级是",Houyi.level)
print("升级两次后后羿的血量是",Houyi.hp)
print("升级两次后后羿的攻击是",Houyi.attack)
yase=Hero("亚瑟",300,22)
print("亚瑟的初始血量是:",yase.hp)
print("亚瑟的初始等级是:",yase.level)
print("亚瑟的初始攻击是:",yase.attack)
yase.upgrade()
yase.upgrade()
print("*"*50)
print("升级两次后亚瑟的等级是",yase.level)
print("升级两次后亚瑟的血量是",yase.hp)
print("升级两次后亚瑟的攻击是",yase.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