Commit 78fe9304 by BellCodeEditor

save project

parent 8cd0b8bc
Showing with 8 additions and 3 deletions
class hero: class hero:
def__init__(self): def __init__(self,dj,hp,xl):
self.dj=dj
\ No newline at end of file self.hp=hp
self.xl=xl
yase=hero("yase",300,20)
hoyi=hero("hoyi",100,90)
print(yase.hp)
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