Commit d1ef7b75 by BellCodeEditor

save project

parent 87274952
Showing with 2 additions and 2 deletions
...@@ -9,8 +9,8 @@ class a(object): ...@@ -9,8 +9,8 @@ class a(object):
def combat(self,c): # 攻击 def combat(self,c): # 攻击
d=self.b+"攻击"+c.b d=self.b+"攻击"+c.b
e="伤害"+str(self.at) e="伤害"+str(self.at)
combat.hp-=self.at c.hp-=self.at
if combat.hp>0: if c.hp>0:
f=combat.c+"还剩"+str(combat.hp)+'血' f=combat.c+"还剩"+str(combat.hp)+'血'
print(d+e+f) print(d+e+f)
else: else:
......
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