Commit b24e4d52 by BellCodeEditor

save project

parent 830ba9ee
Showing with 1 additions and 1 deletions
......@@ -9,7 +9,7 @@ class Hero(object):
def combat(self,enemy):
enemy.hp-=self.attack
into=str(self.name)+"对"+str(enemy.name)+"发起进攻"
into1=str(enemy.name)+"受到"str(self.attack)+"伤害"
into1=str(enemy.name)+"受到"+str(self.attack)+"伤害"
into2=str(enemy.name)+"还剩下"+str(enemy.hp) # 攻击
if enemy.hp>0:
into3=into+into1+into2
......
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