Commit 8f2da0d4 by BellCodeEditor

auto save

parent 085bc8ba
Showing with 3 additions and 2 deletions
...@@ -11,8 +11,8 @@ class Hero(object): ...@@ -11,8 +11,8 @@ class Hero(object):
info2="造成"+str(self.attack)+"点伤害" info2="造成"+str(self.attack)+"点伤害"
enemy.hp=enemy.hp-self.hp enemy.hp=enemy.hp-self.hp
if enemy.hp>0: if enemy.hp>0:
info3=enemy.name+"还剩下"+str() info3=enemy.name+"还剩下"+str(enemy.hp)
info=info1+info2+info3
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) 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