Commit ac048e44 by BellCodeEditor

save project

parent b8b22b79
Showing with 11 additions and 6 deletions
......@@ -17,15 +17,20 @@ class Hero:
info = info1 + info2 + info3
print(info)
exit()
class Player(Hero):
def __init__(self,name):
super().__init__(name)
self.hp = 200
self.attack = 50
player = Player('后羿')
print(player.hp)
#def upgrade(self):
#self.level = self.level+1
#self.hp = self.hp+50
#self.attack = self.attack
#def upgrade(self):
#self.level = self.level+1
#self.hp = self.hp+50
#self.attack = self.attack
#yase = Hero('亚瑟',300,20)
#yase.upgrade()
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