Commit 3e6fcd46 by BellCodeEditor

save project

parent 84f1b1f7
Showing with 5 additions and 2 deletions
......@@ -34,4 +34,7 @@ class player(hero):
self.attack=50
self.max_hp=self.hp
self.hero_type=hero_type
print("角色"+self.name+"创建成功,英雄类型为:",str(c)
\ No newline at end of file
print("角色"+self.name+"创建成功,英雄类型为:",self.hero_type
print("当前等级、血量、攻击分别为:",self.level,self.hp,self.attack)
houyi=player("射手","后羿")
\ No newline at end of file
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