Commit efdd4ea7 by BellCodeEditor

save project

parent 539ab60a
Showing with 7 additions and 10 deletions
......@@ -4,19 +4,16 @@ class a:
self.name=name
self.hp=hp
self.attack=attack
def upgrade(self):
yase.attack = yase.attack + 4
yase.hp = yase.hp + 50
yase.level = yase.level + 1
yase=Hero("垭瑟",300,20)
yase=a('yase',300,20)
def upgrade():
yase.attack = yase.attack + 4
yase.hp = yase.hp + 50
yase.level = yase.level + 1
upgrade()
yase.upgrade()
print(yase.level)
......
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