Commit b11d6daa by BellCodeEditor

save project

parent e30101eb
Showing with 1 additions and 1 deletions
......@@ -28,7 +28,7 @@ class Player(Hero):
self.hp=2000
self.attack=50
self.hero_type=hero_type
print("角色"+self.name+"创建成功,当前等级"+str(self.level)+",血量"+str(self.hp)+"攻击力"+str(self.attack))
print("角色"+self.name+"创建成功,"+self.hero_type+"类型"+",当前等级"+str(self.level)+",血量"+str(self.hp)+"攻击力"+str(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