Commit 53c53ff8 by BellCodeEditor

save project

parent 39eae914
Showing with 7 additions and 0 deletions
...@@ -15,6 +15,13 @@ class Hero(object): ...@@ -15,6 +15,13 @@ class Hero(object):
else: else:
info3 = enemy.name + '还剩下' + str(enemy.hp) + '点生命值' info3 = enemy.name + '还剩下' + str(enemy.hp) + '点生命值'
print(info1 + info2 + info3) print(info1 + info2 + info3)
class player():
def __init__(name)
super().__init__(name)
self.hp = 200
self.attack=50
self.Hero_type = Hero_type
print("角色"+self.name+"创建成功,英雄类型为",self.hero_type)
yase = Hero("垭瑟") yase = Hero("垭瑟")
......
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