Commit d023a832 by BellCodeEditor

save project

parent dc8706fa
Showing with 17 additions and 0 deletions
class Hero():
def __init__(self,level,hp,defense,attck):
self.level=level
self.hp=hp
self.defense=defense
self.attck=attck
def a(self):
self.level=self.level+50
self.hp=self.hp+500
self.defense=self.defense+70
self.attck=self.attck+70
Chen = Hero(1,1229,257,249)
Hoshiguma = Hero(1,1602,154,221)
Chen.a()
\ 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