Commit c600bda1 by BellCodeEditor

save project

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