Commit 0e059b59 by BellCodeEditor

save project

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