Commit cfcb2f01 by BellCodeEditor

save project

parent 4b95f0bf
Showing with 2 additions and 1 deletions
...@@ -11,7 +11,7 @@ class Hero(object): ...@@ -11,7 +11,7 @@ class Hero(object):
info1=self.name+"对"+enemy.name+"进攻," info1=self.name+"对"+enemy.name+"进攻,"
info2="造成了"+enemy.name+"40点伤害" info2="造成了"+enemy.name+"40点伤害"
info3=self.name+"还剩下"+"self.hp-40" info3=self.name+"还剩下"+"self.hp-40"
info= info=info1+info2+info3
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) 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