Commit 2b78b1c5 by BellCodeEditor

save project

parent 70850cf8
Showing with 10 additions and 0 deletions
class MINECRAFT:
def __init__(d,name,hp,attack):
d.level=1
d.name=name
d.hp=hp
d.attack=attack
xj=MINECRAFT("diaolin",300,15)
mj=MINECRAFT("enderman",20,6)
print(xj.hp)
print(mj.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