Commit 0b376835 by BellCodeEditor

save project

parent 32a9e6b1
Showing with 27 additions and 0 deletions
......@@ -5,4 +5,30 @@ class Hero():
self.hp=hp
self.attack=attack
buzhidao=Hero("不知道",400,50)
buzhidao.hp=350
print(buzhidao.hp)
def upgrate():
buzhidao.level=buzhidao.level+4
buzhidao.hp=buzhidao.hp+100
buzhidao.attack=buzhidao.attack+10
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
upgrate()
print(buzhidao.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