Commit 3875efa6 by BellCodeEditor

auto save

parent d7f2d4a0
Showing with 29 additions and 4 deletions
import
class Hero:
def __init__(self,name):
self.name = name
self.level = 1
self.hp = 300
self.attack = 40
self.hp = self.maxhp
def cure(self):
class Player(Hero):
def __init__(self,name):
super.__init__(self,name)
self.hp = 250
self.attack = 50
yase = Hero('亚瑟')
houyi = Player('后羿')
while True:
b = input('1)攻击,2)治疗:')
houyi.zhandou(c,yase)
\ 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