Commit 10d6875e by BellCodeEditor

save project

parent 80ec90a8
Showing with 5 additions and 5 deletions
......@@ -5,12 +5,12 @@ class Hero:
self.HP=HP
self.attack=attack
def shengji():
yase.level=yase.level+1
yase.HP=yase.HP+100
yase.attack=yase.attack+10
def upgrade(self):
self.level=self.level+1
self.HP=self.HP+100
self.attack=self.attack+10
yase=Hero("亚瑟",300,20)
print(yase.HP)
shengji()
yase.upgrade()
print(yase.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