Commit ea58655d by BellCodeEditor

save project

parent 6b16e311
Showing with 10 additions and 3 deletions
......@@ -9,8 +9,14 @@ yase=Hero("SB",300,20)
print("SB的血量:",yase.hp)
#print("177的血量:",houyi.hp)
def upgprdes(self):
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
self.level=self.level+1
self.hp=self.hp+50
self.attack=self.attack+4
houyi=Hero("117",240,23)
houyi.upgprdes()
print("等级",)
print("血量")
print("攻击力")
upgprdes()
\ 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