Commit c600bda1 by BellCodeEditor

save project

parent 7e11b705
Showing with 7 additions and 18 deletions
class Dog: class Hero:
def __init__(self,name,hp,attack): def __init__(MINECRAFT):
self.level=1 MINECRAFT.level=1
self.name=name MINECRAFT.hp=300
self.hp=hp MINECRAFT.attack=15
self.attack=attack diaolin=Hero()
yase=Dog("yase",300000000000000,9999999999999999999999999999) print(diaolin.hp)
houyi=Dog("houyi",240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,9999999999999999999999999999999999999)
#print(yase.hp)
def jk():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
jk()
jk()
print(yase.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