Commit 66081b91 by BellCodeEditor

save project

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