Commit 90bfd647 by BellCodeEditor

save project

parent 2269c841
Showing with 11 additions and 0 deletions
class Hero:
def __init__(self,name,Hp,attack):
self.Level=15
self.name=name
self.Hp=Hp
self.attack=attack
yese = Hero("亚瑟",500,50)
houyi = Hero("后羿",1,10000)
print('亚瑟的血量为:',yese.Hp)
print('后羿的血量为:',houyi.Hp)
\ No newline at end of file
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