Commit 7fbff3ca by BellCodeEditor

save project

parent af8af1ab
Showing with 8 additions and 5 deletions
......@@ -9,10 +9,12 @@ wangzhaojun = Hero("王昭君",340,23)
sunshangxiang = Hero("孙尚香",320,21)
yuji = Hero("虞姬",310,22)
hanxin = Hero("韩信",330,24)
print("武则天的血量为:",wuzetian.hp)
print("王昭君的血量为:",wangzhaojun.hp)
print("孙尚香的血量为:",sunshangxiang.hp)
print("虞姬的血量为:",yuji.hp)
print("韩信的血量为:",hanxin.hp)
def upgrade():
wuzetian.leval = wuzetian.leval+1
wuzetian.hp = wuzetian.hp+50
wuzetian.attack= wuzetian.attack+4
upgrade()
upgrade()
print("武则天的血量为:",wuzetian.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