Commit 7f838f4e by BellCodeEditor

save project

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