Commit bc13c6fd by BellCodeEditor

save project

parent c2114af6
Showing with 5 additions and 5 deletions
class hero: class hero:
def_init_(Arthur,name,hp,atk,level): def __init__(self,name,hp,atk,level):
Arthur.name=name self.name=name
Arthur.hp=hp self.hp=hp
Arthur.atk=atk self.atk=atk
Arthur.level=level self.level=level
Arthur=hero("Arthur",2000,200,1) Arthur=hero("Arthur",2000,200,1)
def upgrade(): def upgrade():
Arthur.hp=Arthur.hp+200 Arthur.hp=Arthur.hp+200
......
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