Commit 434424a0 by BellCodeEditor

save project

parent 4df47e89
Showing with 1 additions and 0 deletions
......@@ -9,6 +9,7 @@ class Hero():
print(f'{self.name}对{diren.name}发起进攻。')
print(f'{diren.name}HP剩余{diren.hp}')
if diren.hp <= 0:
print(f'{diren.name}阵亡,游戏结束')
# def up(self):
self.lv += 1
......
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