Commit a1d0dac0 by BellCodeEditor

save project

parent e348db7b
Showing with 2 additions and 2 deletions
...@@ -23,7 +23,7 @@ class Hero: # 英雄类 ...@@ -23,7 +23,7 @@ class Hero: # 英雄类
class Player(Hero): # 玩家英雄 class Player(Hero): # 玩家英雄
def __init__(self,name): def __init__(self,name,hero_type):
super().__init__(name) super().__init__(name)
self.hp = 9999999999999999999999999999999999999999999999999999999999999 self.hp = 9999999999999999999999999999999999999999999999999999999999999
self.attack = 999999999999999999999999999999999999999999999999 self.attack = 999999999999999999999999999999999999999999999999
...@@ -32,5 +32,5 @@ class Player(Hero): # 玩家英雄 ...@@ -32,5 +32,5 @@ class Player(Hero): # 玩家英雄
print("分别:",self.hp,self.attack) print("分别:",self.hp,self.attack)
houyi = Player("后羿") houyi = Player("后羿","射手")
yase=Hero("亚瑟") yase=Hero("亚瑟")
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