Commit f60b8e64 by BellCodeEditor

save project

parent b95e6483
Showing with 5 additions and 5 deletions
class Hero:
def__init__(self , name , hp , attack ):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
def __init__(self, name, hp, attack):
self.level = 1
self.name = name
self.hp= hp
self.attack= attack
def upgrade(self):
self.level=self.level+1
......
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