Commit 55988be9 by BellCodeEditor

save project

parent 5b2b26bf
Showing with 4 additions and 2 deletions
...@@ -7,10 +7,11 @@ class Hero: ...@@ -7,10 +7,11 @@ class Hero:
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
def grade(): def grade():
yase.level=yase.level+1 yase.level=yase.level+1
yese.hp=yase.hp+50 yase.hp=yase.hp+50
yese.attack=yase.attack+4 yase.attack=yase.attack+4
hy=Hero('hy',250,23) hy=Hero('hy',250,23)
k=Hero('K',5600,199) k=Hero('K',5600,199)
grade()
print(yase.hp) print(yase.hp)
print(hy.hp) print(hy.hp)
print(k.hp) print(k.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