Commit dace28d3 by BellCodeEditor

save project

parent 466492f1
Showing with 6 additions and 6 deletions
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.hp=hp
self.attack=attack
self.name=name
kunkun=Hero('坤坤'300,80)
kunba=Hero('坤八'250,90)
self.level=1
self.hp=hp
self.attack=attack
self.name=name
kunkun=Hero('坤坤',300,80)
kunba=Hero('坤八',250,90)
def upgrate():
kunkun.level+=1
kunkun.hp+50
......
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