Commit a302e337 by BellCodeEditor

save project

parent 7c3d1897
Showing with 8 additions and 3 deletions
...@@ -7,6 +7,11 @@ class Hero: ...@@ -7,6 +7,11 @@ class Hero:
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
hy=Hero('hy',240,23) hy=Hero('hy',240,23)
k=Hero('K',5600,199) k=Hero('K',5600,199)
def upgrade():
self.level=1
self.name=name
self.hp=hp
self.attack=attack+4
upgrade()
print(yase.attack) print(yase.attack)
print(hy.attack) print(hy.attack)
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