Commit d407ec78 by BellCodeEditor

save project

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