Commit 631fccaa by BellCodeEditor

save project

parent a0fd40c8
Showing with 4 additions and 4 deletions
...@@ -7,9 +7,9 @@ class Hero: ...@@ -7,9 +7,9 @@ class Hero:
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
houyi=Hero('后羿',240,25) houyi=Hero('后羿',240,25)
def Upgrade(self): def Upgrade(self):
self.level=self.level+1 self.level=self.level+1
self.ph=self.ph+50 self.ph=self.ph+50
self.attact=self.attact+4 self.attact=self.attact+4
Upgrade(yase) Upgrade(yase)
print(yase.ph) print(yase.ph)
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