Commit bb1499f7 by BellCodeEditor

save project

parent 7bd60745
Showing with 8 additions and 6 deletions
class hearo: class hearo:
def __init__(a): def __init__(a,name,hp,attack):
a.level=1 a.level=1
a.hp=300 a.name=name
a.attack=20 a.hp=hp
yase=hearo() a.attack=attack
print(yase.hp) yase=hearo("yase",300,20)
\ No newline at end of file hy=hearo("hy",250,23)
print(hy.hp)
\ No newline at end of file
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