Commit 52cdb96e by BellCodeEditor

save project

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