Commit f54697af by BellCodeEditor

save project

parent e445712b
Showing with 1 additions and 0 deletions
...@@ -26,6 +26,7 @@ class Player(): # 玩家英雄 ...@@ -26,6 +26,7 @@ class Player(): # 玩家英雄
def __init__(self,name): def __init__(self,name):
self.hp=200 self.hp=200
self.attack=50 self.attack=50
self.hero_type=hero_type
print('玩家的名字是'+self.name+'创建成功'+self.hero_type) print('玩家的名字是'+self.name+'创建成功'+self.hero_type)
print('玩家的属性'+self.level+self.hp+self.attack) print('玩家的属性'+self.level+self.hp+self.attack)
......
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