Commit 2d24c52e by BellCodeEditor

save project

parent 89577141
Showing with 6 additions and 1 deletions
...@@ -3,7 +3,11 @@ class Hero: ...@@ -3,7 +3,11 @@ class Hero:
self.HP=HP self.HP=HP
self.ACCTAK=ACCTAK self.ACCTAK=ACCTAK
self.SPEED=SPEED self.SPEED=SPEED
def upgrade(self):
self.HP=self.HP+1
self.ACCTAK=self.ACCTAK+1
self.SPEED=self.SPEED+1
keqing=Hero(114514,9999,648) keqing=Hero(114514,9999,648)
print(keqing.HP) print(keqing.HP)
print(keqing.ACCTAK) print(keqing.ACCTAK)
print(keqing.SPEED) print(keqing.SPEED)
\ No newline at end of file
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