Commit 6b2f8f49 by BellCodeEditor

save project

parent 02a43d31
Showing with 7 additions and 5 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.Hp=random(1,999999999999999999999999999999999999999999999999999999999999) self.hp=hp
self.level=random(1,15) self.name=name
self.attack=random(1,33333333333333333333333333336666666666666666666666666666) self.level=1
yase=Hero() self.attack=attack
yase=Hero("yase",300,240)
hongyi=Hero("hongyi",300,240)
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