Commit d407ec78 by BellCodeEditor

save project

parent a762c24c
Showing with 10 additions and 6 deletions
class Hero:
def __init__(self):
def __init__(self,name,hp,attack):
self.level = 1
self.hp = 9999999
self.attack = 11
self.name = name
self.hp = hp
self.attack = attack
yase1 = Hero()
print(yase1.hp)
\ No newline at end of file
yase = Hero("亚瑟",9999999999999999999,11111111)
gou =Hero("狗",100000000000,88888888888888)
print(yase.name+sty(yase.hp))
print(gou)
\ 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