Commit fb70a9b2 by BellCodeEditor

save project

parent efcae053
Showing with 2 additions and 2 deletions
...@@ -26,6 +26,6 @@ class Player(Hero): ...@@ -26,6 +26,6 @@ class Player(Hero):
self.attack=50 self.attack=50
self.hero_type=hero_type self.hero_type=hero_type
print("角色"+self.name+"创建成功,角色类型是"+self.hero_type) print("角色"+self.name+"创建成功,角色类型是"+self.hero_type)
print("它的属性分别是"+str(self.hp)+str(self.attack)+str(self.level) print("它的属性分别是",self.level,self.hp,self.attack)
houyi=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