Commit 8019ecc3 by BellCodeEditor

save project

parent 05791fe6
Showing with 9 additions and 6 deletions
class libai: class houyi:
def __init__(self): def __init__(self,name,hp,attack):
self.lever = 1 self.lever = 1
self.hp = 800 self.name = name
self.attack = 500 self.hp = hp
libai = libai() self.attack = attack
print(libai.hp) yase = houyi("亚瑟",600,60)
houyi = houyi("后羿",500,66)
print("亚瑟的血量为",yase.hp)
print("后羿的血量为",houyi.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