Commit 440ab037 by BellCodeEditor

save project

parent e25c88a2
Showing with 2 additions and 2 deletions
class Hero: # 英雄类
class Hero(): # 英雄类
def __init__(self, name): # 实例属性
self.name = name
self.level = 1
......@@ -29,7 +29,7 @@ class Hero: # 英雄类
class Player(Hero): # 玩家英雄
def __init__(self,name,Hero_type):
super(player,self).__init__(name)
super(player,self)__init__(name)
self.hp = 200
self.attack = 50
self.Hero_type = Hero_type
......
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