Commit 7f838f4e by BellCodeEditor

save project

parent d56a9dfc
Showing with 7 additions and 5 deletions
...@@ -4,9 +4,10 @@ class Hero: ...@@ -4,9 +4,10 @@ class Hero:
self.name=name self.name=name
self.HP=HP self.HP=HP
self.attack=attack self.attack=attack
steve=Hero("Steve",10000000,90000)
def hi(): def hi(self):
steve.level=steve.level+1 self.level=self.level+1
steve.HP=steve.HP+1000000 self.HP=self.HP+1000000
steve.attack=steve.attack+9000 self.attack=self.attack+9000
hi() hi()
steve=Hero("Steve",10000000,90000)
\ 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