Commit 15be03ff by BellCodeEditor

save project

parent a8aa47b8
Showing with 1 additions and 1 deletions
...@@ -28,7 +28,7 @@ class Player(Hero): # 玩家英雄 ...@@ -28,7 +28,7 @@ class Player(Hero): # 玩家英雄
self.hp=300 self.hp=300
self.attack=200 self.attack=200
self.hero_type=hero_type self.hero_type=hero_type
print("英雄",yingself.name,"创建成功,英雄类型为",self.hero_type) print("英雄"+self.name,"创建成功,英雄类型为",self.hero_type)
print("攻击力","血量","等级",self.attack,self.hp,self.leve) print("攻击力","血量","等级",self.attack,self.hp,self.leve)
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