Commit 2d25f375 by BellCodeEditor

auto save

parent da60e227
Showing with 14 additions and 0 deletions
class Hero(object):
def __init__(self, name):
self.level = 1
self.hp = 3500
self.attack = 388
self.name = name
def diren(self,emery):
emery.hp-=self.attack
s1=self+ "对"+emery+"发起攻击"
s2="对"+emery+"造成"+str(emery.hp)+"的伤害"
s3=emery+"的血量还有"+str(emery.hp)
if emery.hp>0:
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