Commit 039cccde by BellCodeEditor

save project

parent 259f591d
Showing with 37 additions and 0 deletions
......@@ -5,7 +5,44 @@ class hero:
self.hp=hp
self.attack=attack
def upgrade(self):
self.level=self.level+1
self.level
yase=hero("垭瑟"300,20)
houyi=hero("后羿"240,23)
print("垭瑟的血量为"yase.hp)
print("后羿的血量为"houyi.hp)
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