Commit ea35bca0 by BellCodeEditor

save project

parent 4a51caff
Showing with 7 additions and 3 deletions
class Hero:
def__init__(self,name,hp,attack):
def __init__(self,name,hp,attack):
self.level=1
self.name = name
self.hp = hp
self.attack=attack
yase = Hero("亚索,300,20)
print()
dey upd(self):
self.hp+=1
self.attack+=50
yase = Hero("亚索,300,20)
self.upd()
self.upd()
def upd():
yase.hp+=1
yase.attack+=50
......
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