Commit 52392d36 by BellCodeEditor

save project

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