Commit 3430b1cd by BellCodeEditor

auto save

parent af0384e5
Showing with 6 additions and 0 deletions
class hero: class hero:
def __init__(self,name,HP,ADC): def __init__(self,name,HP,ADC):
self.LV=1
self.name=name self.name=name
self.HP=HP self.HP=HP
self.ADC=ADC self.ADC=ADC
yase=hero("亚瑟",300,20) yase=hero("亚瑟",300,20)
houyi=hero("后羿",250,23) houyi=hero("后羿",250,23)
def YaseUpgrade():
hero.LV=
print("亚瑟的血量为"+str(yase.HP)+"点") print("亚瑟的血量为"+str(yase.HP)+"点")
\ 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