Commit 6ed6bebb by BellCodeEditor

save project

parent ff4db192
Showing with 2 additions and 2 deletions
......@@ -28,8 +28,8 @@ class Player(Hero): # 玩家英雄
self.hp=200
self.attack=60
self.hero_type=hero_type
print('角色:'+self.name+'类型:'+self.hero_type)
print('当前角色:'+self.name,"玩家的血量值为:",self.hp,"玩家的攻击力为:",self.attack)
print('角色:'+self.name+' 类型:'+self.hero_type)
print('当前角色:'+self.name," 玩家的血量值为:",self.hp," 玩家的攻击力为:",self.attack)
player = Player("后羿",'射手')
print("玩家的血量值为:",player.hp)
......
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