Commit f6072671 by BellCodeEditor

auto save

parent 51f38dc4
Showing with 0 additions and 2 deletions
...@@ -6,8 +6,6 @@ class Hero: ...@@ -6,8 +6,6 @@ class Hero:
self.attack=attack self.attack=attack
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
hy=Hero('hy',250,23) hy=Hero('hy',250,23)
print(yase.hp)
print(hy.hp)
def upgrade(): def upgrade():
self.hp=self.hp+50 self.hp=self.hp+50
self.level=self.level+1 self.level=self.level+1
......
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