Commit e997e92d by BellCodeEditor

save project

parent c996c274
Showing with 7 additions and 7 deletions
class h:
def__init__(self):
self.level=2
self.hp=400
self.attak=30
yase=h()
print(yase.hp)
\ No newline at end of file
def__init__(self,name,hp,att):
self.name=name
self.hp=hp
self.att=att
yase=h("yase",200,25)
houyi=h("youyi",150,20)
print()
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