Commit 9ed180df by BellCodeEditor

save project

parent d8b2046b
Showing with 7 additions and 5 deletions
...@@ -7,11 +7,12 @@ class Hero: ...@@ -7,11 +7,12 @@ class Hero:
yase=Hero("垭瑟",300,20) yase=Hero("垭瑟",300,20)
hoyi=Hero("后羿",250,23) hoyi=Hero("后羿",250,23)
zhuaizhuaixion=Hero("拽拽熊",0.01,0.0000000001) zhuaizhuaixion=Hero("拽拽熊",0.01,0.0000000001)
def upgarde(): def upgarde(self):
yase.level+=1 silf.level+=1
hoyi.hp+=1 silf.hp+=1
zhuaizhuaixion.attack+=1 silf.attack+=1
upgarde() yase.upgarde()
k.upgarde()
print(yase.hp) print(yase.hp)
print(hoyi.hp) print(hoyi.hp)
print(zhuaizhuaixion.hp) print(zhuaizhuaixion.hp)
\ 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