Commit 65f8c8fe by BellCodeEditor

save project

parent cd38dad6
Showing with 7 additions and 4 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.level=100000 self.level=100000
self.hp=9999 self.name=name
self.attack=9999999 self.hp=hp
yase=Hero() self.attack=attack
yase=Hero("yase",300000000000,9999999999)
houyi=Hero("houyi",77777777777777,999999999)
print(yase.hp) print(yase.hp)
print(houyi.hp)
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