Commit eec154bf by BellCodeEditor

save project

parent 9b842a45
Showing with 3 additions and 3 deletions
class Hero:
def __init__(self,name,hp,attask):
def __init__(self,name,hp,attar):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
self.attar=attar
yase=Hero("亚瑟",300,100)
houyi=Hero("后羿",240,150)
print(yase.name)
print(yase.name,houyi.name)
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