Commit 909e9946 by BellCodeEditor

auto save

parent cd5dab6a
Showing with 0 additions and 14 deletions
class hero:
def __init__(self,name,hp,attack):
self.hp=hp
self.level=1
self.attack=attack
self.name=name
yase=hero("亚瑟",300,20)
houyi=hero("后羿",250,40)
print(yase.name)
print(yase.hp)
print(yase.attack)
print(houyi.name)
print(houyi.hp)
print(houyi.attack)
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