Commit 9bf05f52 by BellCodeEditor

save project

parent e30358f0
Showing with 1 additions and 1 deletions
......@@ -9,7 +9,7 @@ class Hero:
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+50
self.attack+self.attack+4
self.attack=self.attack+4
yase=Hero("亚瑟",300,20)
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