Commit b6ff922a by BellCodeEditor

save project

parent 91d267be
Showing with 11 additions and 2 deletions
class Hero():
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
......@@ -8,4 +9,12 @@ hp=Hero('hy',250,23)
k=Hero('k',5600,199)
print(yase.attack)
print(hp.attack)
print(k.attack)
\ No newline at end of file
print(k.attack)
def uprade(): vv到现场方法v工作服花港饭店比不过豹女哈哈额度不够
yase.level+=1
yase.hp+=50
yase.attack+=10
uprade()
uprade()
print(yase.attack)
\ 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