class Hero:
    def __init__(self,name,hp,attack):
        self.level = 1
        self.name = name
        self.hp = hp
        self.attack = attack

yase = Hero("亚瑟",300,20)
houyi = Hero("后羿",240,23)
print("亚瑟血量:"+yase.hp)
print(houyi.hp)