Commit b9469cb1 by BellCodeEditor

auto save

parent 74f42d55
Showing with 7 additions and 6 deletions
......@@ -7,8 +7,9 @@ class hero():
self.attack+=50
self.hp+=100
self.level+=1
ad=hero(50,300,1)
ad.upgrade()
print(ad.hp)
print(ad.attack)
print(ad.level)
\ No newline at end of file
def check(self):
print(self.attack)
print(self.hp)
print(self.level)
ad=hero(500,100,1)
ad.check()
\ 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