Commit d422eafd by BellCodeEditor

save project

parent 8a3fa638
Showing with 7 additions and 4 deletions
class Hiro:
def __init__(self):
def __init__(self,nema,hp,attack):
self.level=1
self.hp=500
self.attack=60
luban=Hero()
self.name=name
self.hp=hp
self.attack=attack
luban=Hero('鲁班',500,203)
jiajuo=Hero('伽罗'600,999999999999999)
print('鲁班的血量值为:',luban.hp)
print('鲁班的攻击力为:',luban.attack)
\ 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