Commit 79f5baca by BellCodeEditor

save project

parent d6c81a0f
Showing with 9 additions and 0 deletions
class hero:
def __init__(self,name,HP,ADC):
self.name=name
self.HP=HP
self.ADC=ADC
yase=hero("亚瑟",300,20)
houyi=hero("后羿",250,23)
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