Commit 52cdb96e by BellCodeEditor

save project

parent e95a66ab
Showing with 5 additions and 2 deletions
...@@ -6,4 +6,8 @@ class Hero(): ...@@ -6,4 +6,8 @@ class Hero():
self.attack=attack self.attack=attack
yase=Hero("亚瑟",3500,500) yase=Hero("亚瑟",3500,500)
houyi=Hero("后裔",3000,700) houyi=Hero("后裔",3000,700)
print(yesa.hp) def upgrage():
\ No newline at end of file self.level=self.level+1
self.hp=self.hp+500
self.attack=self.attack+150
upgrage()
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