Commit e37e171d by BellCodeEditor

save project

parent c229ac1e
Showing with 3 additions and 3 deletions
......@@ -5,9 +5,9 @@ class Hero:
self.hp = hp
self.attack = attack
def upgrade(self):
self.yase.level=yase.level+1
self.yase.hp=yase.hp=50
self.yase.attack=yase.attack+4
self.level=level+1
self.hp=hp=50
self.attack=attack+4
houyi = Hero("后裔",240,23)
houyi.upgrade()
print("等级为:",houyi.levle)
......
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