Commit 66081b91 by BellCodeEditor

save project

parent 2bf3d6ba
Showing with 6 additions and 5 deletions
class Hero: class Hero:
def__init__(self): def __init__(self,name,age,height):
self.level=1 self.level=1
self.ph=300 self.name=name
self.attack=9999999999999999 self.age=age
yase=Hero() self.height=height
print(yase.ph) yase=Hero("yase",11,140)
print(yase.age)
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