Commit 8019ecc3 by BellCodeEditor

save project

parent 05791fe6
Showing with 9 additions and 6 deletions
class libai:
def __init__(self):
class houyi:
def __init__(self,name,hp,attack):
self.lever = 1
self.hp = 800
self.attack = 500
libai = libai()
print(libai.hp)
self.name = name
self.hp = hp
self.attack = attack
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