Commit 771a56b3 by BellCodeEditor

save project

parent 9fbfdccd
Showing with 11 additions and 0 deletions
class Hero:
def __init__(self, name):
self.level = 1
self.hp = 250
self.attack = 40
self.name = nameclass Hero:
def cpmbat(self,enemy):
ingfol = self.name + "对" + enemy.name + "发起攻击"
info2 = "造成" + str(self.attack) + enemy.name + "发起进攻"
enemy.hp -= self.
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