Commit bcd6448a by BellCodeEditor

save project

parent 403816b1
Showing with 251 additions and 3 deletions
...@@ -4,9 +4,257 @@ class Hero: ...@@ -4,9 +4,257 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.gongji=gongji self.gongji=gongji
yase=Hero("亚瑟",100,200,1000) yase=Hero("亚瑟",200,1000)
kai=Hero("铠",1000,500,5000) kai=Hero("铠",5000,4000)
houyi=Hero("后羿",100,200,2000) houyi=Hero("后羿",200,2000)
def shengji():
houyi.level=houyi.level+1
houyi.hp=houyi.hp+100
houyi.gongji=houyi.gongji+4
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