Commit ed5dfc34 by BellCodeEditor

auto save

parent ca57fb44
Showing with 7 additions and 4 deletions
# class Hero: class Hero:
def __init__(self,name,hp,attack,leve1): def __init__(self,name,hp,attack,leve1):
self.leve1=leve1 self.leve1=leve1+2
self.hp=hp self.hp=hp+3
self.attack=attack self.attack=attack+1
def move():
yase=Hero('亚瑟',100,5,3) yase=Hero('亚瑟',100,5,3)
houyi=Hero('后羿',20,8,3) houyi=Hero('后羿',20,8,3)
......
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