Commit c25196e1 by BellCodeEditor

auto save

parent 32ee8872
Showing with 6 additions and 6 deletions
......@@ -3,12 +3,12 @@ class hero():
self.level=a
self.hp=b
self.attack=c
def upgrade():
yase.level+=1
yase.hp+=40
yase.attack+=30
def upgrade(self):
self.level+=1
self.hp+=40
self.attack+=30
yase=hero(1,500,40)
upgrade()
print(yase.hp)
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