Commit df1190bb by BellCodeEditor

save project

parent bbee16bd
Showing with 1 additions and 1 deletions
......@@ -12,8 +12,8 @@ class Hero(object):
info2='造成'+str(self.attack)+'点伤害,'
info3=enemy.name+'还剩下'+str(enemy.hp)+'点血量'
info=info1+info2+info3
print(info)
if enemy.hp<1:
print(info)
print('游戏结束')
else:
print(info)
......
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