Commit dce36b5a by BellCodeEditor

save project

parent a492f899
Showing with 10 additions and 1 deletions
......@@ -4,4 +4,13 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
yase=Hero('yase',300,20)
yase=Hero('yase',300,200)
def upgrade():
yase.level += 1
yase.hp += 50
yase.attack += 5
upgrade()
upgrade()
print(yase.hp)
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