Commit 52392d36 by BellCodeEditor

save project

parent 05f4ffc8
Showing with 7 additions and 5 deletions
class Houre: class Houre:
def __init__(self): def __init__(self,hp,attack,mp):
self.hp=1000 self.hp=hp
self.attack=999 self.attack=attack
self.mp=9999 self.mp=mp
lubanqihao=Houre() lan=Houre(1000,890,999999)
lubanqihao=Houre(250,500,999999)
print(lubanqihao.hp) print(lubanqihao.hp)
print(lan.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