Commit 9210fc59 by BellCodeEditor

save project

parent dd09090a
Showing with 5 additions and 4 deletions
...@@ -24,10 +24,11 @@ class Hero: # 英雄类 ...@@ -24,10 +24,11 @@ class Hero: # 英雄类
class player(Hero): # 玩家英雄 class player(Hero): # 玩家英雄
def __init__(self,name): def __init__(self,name):
self.level=1 super().__int__(name)
self.hp=250 self.hp=200
self.attack=40 self.attack=50
self.name=name
player = Player("后羿") player = Player("后羿")
......
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