Commit 6f74b261 by BellCodeEditor

save project

parent 7d160d2f
Showing with 4 additions and 1 deletions
......@@ -11,9 +11,11 @@ class Hero(object):
info1=self.name+"对"+gjdx.name+"发起攻击"
info2=gjdx.name+"血量减少"+str(self.attack)
if gdjx.name>0:
info3=gjdx.name+"还剩下"+str(gjdx.hp)
info3=gjdx.name+"还剩下"+str(gjdx.hp)+"血量"
else:
info3=gjdx.name"血量不足,已阵亡"
info=info1+info2+info3
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