Commit bc13c6fd by BellCodeEditor

save project

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