Commit 7aa38142 by BellCodeEditor

save project

parent e59a4b40
Showing with 8 additions and 6 deletions
...@@ -3,8 +3,10 @@ class hero: ...@@ -3,8 +3,10 @@ class hero:
self.level=1 self.level=1
self.hp=300 self.hp=300
self.attack=20 self.attack=20
rt=hero() def qw():
rt.hp self.level=self.level+1
rt.level self.hp=self.hp+30
rt.attack self.attack=self.attack+4
print(rt.hp) qw()
\ No newline at end of file qw()
print(self.hp)
\ 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