Commit 0e059b59 by BellCodeEditor

save project

parent 0b89a67b
Showing with 5 additions and 7 deletions
class hero: class hero:
def _init_(self): def __init__(self,name,hp,attack):
self.level=1 self.name=name
self.hp=3000 self.hp=hp
self.attack=20 self.attack=attack
yase=hero() machao=person(name,hp,attack)
print(yase.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