Commit 50e85aac by BellCodeEditor

save project

parent 138d1a11
Showing with 4 additions and 2 deletions
......@@ -12,10 +12,12 @@ class Hero(object):
info2 = "造成"+str(self.attack)+"点攻击,"
if enemy.hp>0:
info3 = str(enemy.name)+"还剩下"+str(self.hp)+"血量"
info = info1+info2+info3
print(info)
else:
info3 = str(enemy.name)+"已死亡"
info = info1+info2+info3
print(info)
print(info3)
exit()
yase = Hero("垭瑟")
houyi= Hero("后羿")
......
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