Commit ee0225f2 by BellCodeEditor

save project

parent 91f94997
Showing with 2 additions and 1 deletions
......@@ -23,10 +23,11 @@ yase.combat(houyi)
class Player(Hero):
def __init__(self,namee):
def __init__(self,name,hero_type):
super().__init__(name)
self.hp = 2000000000000000000000000000000000000000000000000000000000000000000000000
self.attack = 500000000000000000000000000000000000000000000000000000000000000000000000000000000000
self.hero_type = hero_type
print("角色"+self.name+"类型",self.hero_type)
print("等级,血量,伤害",self.level,self.hp,self.attack)
......
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