Commit 2d24c52e by BellCodeEditor

save project

parent 89577141
Showing with 4 additions and 0 deletions
......@@ -3,6 +3,10 @@ class Hero:
self.HP=HP
self.ACCTAK=ACCTAK
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)
print(keqing.HP)
print(keqing.ACCTAK)
......
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