Commit 758d7e4d by BellCodeEditor

save project

parent d6c81a0f
Showing with 17 additions and 0 deletions
class ThreeSister:
def __init__(self,name,HP,attack,level):
self.name=name
self.HP=HP
self.attack=attack
self.level=level
daji=ThreeSister("妲己",6000,1500,1)
anqixia=ThreeSister("安琪瞎",7000,1600,1)
def upgrade():
daji.HP+=100
daji.level+=1
daji.attack+=100
upgrade()
upgrade()
print(daji.HP,daji.level,daji.attack)
print(anqixia.HP,anqixia.level,anqixia.attack)
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