Commit 4bea0d38 by BellCodeEditor

auto save

parent 806cc269
Showing with 6 additions and 6 deletions
...@@ -6,12 +6,11 @@ class Hero: ...@@ -6,12 +6,11 @@ class Hero:
self.hp = 300000000 self.hp = 300000000
self.lever = 1 self.lever = 1
self.attack = 30000000 self.attack = 30000000
yase = Hero(300,20,"亚瑟")
yase = Hero(300,20,"亚瑟") def upgrade():
def upgrade(): yase.lever+=1
yase.lever+=1 yase.hp+=50
yase.hp+=50 yase.attack+=300
yase.attack+=300
upgrade() upgrade()
upgrade() upgrade()
\ 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