Commit 2bda6d18 by BellCodeEditor

save project

parent f47689a4
Showing with 13 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attach):
self.level=1
self.name=name
self.hp=hp
self.attach=attach
luban=Hero("鲁班",250,700)
dijia=Hero("迪迦",300,800)
def upgrade():
luban.level=level+1
luban.hp=hp+100
luban.attach=attach+120
\ 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