Commit 571f6b0f by BellCodeEditor

save project

parent 6b7bef84
Showing with 8 additions and 7 deletions
class Hero:
def __init__(self):
self.level=0.0000000000000001
self.hp=0.000000000000000000000000000000000000000000000001
self.attack=0.000001
rao=Hero()
print(rao.hp)
\ No newline at end of file
def __init__(self,name,hp,attack):
self.level=1
self.hp=hp
self.attack=attack
self.name=name
rao=Hero("rao",0.1,0.1)
print(rao.hp,rao.attack)
\ 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