Commit 92e05b84 by BellCodeEditor

save project

parent d1536a55
Showing with 10 additions and 0 deletions
class houyi:
def __init__(self,name,hp,attack):
self.lever = 1
self.name = name
self.hp = hp
self.attack = attack
yase = houyi("亚瑟",600,60)
houyi = houyi("后羿",500,66)
print("亚瑟的血量为",yase.hp)
print("后羿的血量为",houyi.hp)
This diff is collapsed. Click to expand it.
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