Commit 1997f657 by BellCodeEditor

save project

parent 89da6887
Showing with 8 additions and 7 deletions
class hero:
def __init__(self):
self.hp=999999
self.attack=99
self.level=999
sdt=hero()
print (sdt.attack)
\ No newline at end of file
def __init__(self,name,hp,level):
self.name=name
self.hp=hp
self.level=level
self.attack=0.1
shijou=hero("shijou",300,1)
pi=hero("pi",1,300)
\ 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