Commit bdba2f93 by BellCodeEditor

save project

parent 22088746
Showing with 1 additions and 1 deletions
...@@ -12,7 +12,7 @@ class Hero(object): ...@@ -12,7 +12,7 @@ class Hero(object):
info2="对"+enermy.name+"造成了"+str(self.attack)+"点伤害" info2="对"+enermy.name+"造成了"+str(self.attack)+"点伤害"
if enermy.hp>0: if enermy.hp>0:
info3=enermy.name+"受到"+self.name+"的攻击,"+"还有"+str(enermy) info3=enermy.name+"受到"+self.name+"的攻击,"+"还有"+str(enermy)
ptint(info1+info2+info3) print(info1+info2+info3)
else: else:
info3=enermy.name+"血量小于或=0.\n英雄阵亡,结束。" info3=enermy.name+"血量小于或=0.\n英雄阵亡,结束。"
print(info1+info2+info3) print(info1+info2+info3)
......
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