Commit ef27e814 by BellCodeEditor

save project

parent 3d102cf7
Showing with 11 additions and 2 deletions
......@@ -9,8 +9,16 @@ class Hero(object):
def combat(): # 攻击
enem.hp -= self.attack
info1 = self.name+"对"+enemy.name+"fick you,"
info2 = "so" + st()
info2 = "so" + str(self.attack) + "shit"
if enem.hp > 0:
info3 = enemy.name + "not" + str(enemy.hp) + "life"
info = info1 + info2 + info3
print(info)
else:
info3 = enemy.name + "do es"
info = info1 +info2 +info3
print(info)
exit()
yase = Hero("垭瑟")
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