Commit 0efb4b7c by BellCodeEditor

save project

parent ba1bcb02
Showing with 3 additions and 3 deletions
......@@ -5,9 +5,9 @@ class hero:
self.hp=hp
self.attack=attack
def upgrade(self):
self.level=yase.level+1
self.hp=yase.hp+50
slef.attack=yase.attack+4
self.level=self.level+1
self.hp=self.hp+50
slef.attack=self.attack+4
houyi=hero("后羿",240,23)
houyi.upgrsde()
print("等级为:",houyi.level)
......
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