Commit e77c00d5 by BellCodeEditor

save project

parent d9243538
Showing with 3 additions and 2 deletions
......@@ -9,7 +9,7 @@ class Hero:
info2="造成"+str(self.attack)+"点伤害"
enemy.hp-=self.attack
if enemy.hp>0:
info3=enemy.name+"还剩下"+str(enemt.hp)+"血量"
info3=enemy.name+"还剩下"+str(enemy.hp)+"血量"
info=info1+info2+info3
print(info)
else:
......@@ -18,5 +18,5 @@ class Hero:
print(info)
exit()
yase=Hero("亚瑟")
houyi=Heor("后裔")
houyi=Hero("后裔")
yase.combat(houyi)
\ 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