Commit fcae012c by BellCodeEditor

save project

parent 5fc43cbc
Showing with 9 additions and 4 deletions
...@@ -6,7 +6,12 @@ class Hero: ...@@ -6,7 +6,12 @@ class Hero:
self.attack=attack self.attack=attack
yase=Hero('yase',9999999999999,20) yase=Hero('yase',9999999999999,20)
hy=Hero('hy',250,23) hy=Hero('hy',250,23)
k=Hero('K',5600,199)
def upgrade():
yase.level+=1
yase.hp+=50
yase.attack+=4
for i in range(1000):
upgrade()
print(yase.attack) print(yase.attack)
print(hy.attack) print(yase.hp)
print(k.attack) \ No newline at end of file
\ 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