Commit 571f6b0f by BellCodeEditor

save project

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