Commit 12417997 by BellCodeEditor

save project

parent 360e4fae
Showing with 1 additions and 1 deletions
...@@ -10,7 +10,7 @@ houyi=Hero('亚瑟',200,300) ...@@ -10,7 +10,7 @@ houyi=Hero('亚瑟',200,300)
def shengji(): def shengji():
houyi.level=houyi.level+1 houyi.level=houyi.level+1
houyi.hp=houyi.hp+100 houyi.hp=houyi.hp+100
houyi.gongji=gongji.hp+4 houyi.gongji=houyi.gongji+4
shengji() shengji()
print('后羿攻击力是:',houyi.gongji) print('后羿攻击力是:',houyi.gongji)
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