Commit fe40b8d9 by BellCodeEditor

save project

parent 87c8df01
Showing with 10 additions and 5 deletions
......@@ -4,13 +4,18 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+100000000000000000000000000000000000000000000000000000000000000000000000000000
self.attack=self.attack+1000000000000000000000000000000000000000000000000000000000000000000000
yase=Hero('yase',100000000000000000000000,100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
hy=Hero('hy',250000000000000000000000000000000000000000000000000000000000000,23000000000000000000)
k=Hero('K',5600000000000000000000000000000000000000000000000000000000000000000,19900000000000000000000000000000000000000000000000000000000)
print(yase.attack)
print(hy.attack)
print(k.attack)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+100000000000000
yase.attack=yase.attack+1000000000000000000000000000000000000000000000000000000000000000000000
\ No newline at end of file
upgrade()
print(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