Commit 5ed47f5e by BellCodeEditor

save project

parent 9f3f7682
Showing with 7 additions and 5 deletions
class hero: class hero:
def __init__(self,name,hp,attack) def __init__(self,name,hp,attack):
self.level=1 self.level=1
self.name=Name self.name=name
self.hp=help self.hp=help
self.attack=attack self.attack=attack
yase=hero("娅瑟",300,20) yase=hero("娅瑟",300,20)
hoyi=hero("后翌",250,23) hoyi=hero("后翌",250,23)
print("后翌的血量",hoyi.hp)
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