Commit a8381522 by BellCodeEditor

save project

parent d0f0840a
Showing with 7 additions and 0 deletions
......@@ -4,5 +4,11 @@ class hero:
self.name=name
self.hp=hp
self.attack=attack
def upguard(self):
self.level=salf.level+1000000000000000000000000000000000000
self.hp=self.hp+100000000000000000000000000000000000000000000
self.attack=self.attack+100000000000000000000000000000000000
yase=hero("yase",400,30)
print(yase.name,yase.hp,yase.attack)
yase.upguard()
print(yase.name,yase.hp,yase.attack)
\ 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